From d2e7938c704714d70ecd1008b0b58de53ca8af01 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 6 Jul 2015 04:27:28 -0400 Subject: [PATCH] disable clang warnings compiling the bundled boost with clang without cxx11 causes hundreds of warnings. --- cmake/setup_compiler_flags_gnu.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 119ba6d3bf..d375017db7 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -92,6 +92,11 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-parameter") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-variable") + # without c++11 enabled, clang produces a ton of warnings in boost: + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-c99-extensions") + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-variadic-macros") + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-c++11-extensions") + IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.6") # # Clang versions prior to 3.6 emit a lot of false positives wrt -- 2.39.5