From: Timo Heister Date: Mon, 6 Jul 2015 08:27:28 +0000 (-0400) Subject: disable clang warnings X-Git-Tag: v8.3.0-rc1~49^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e7938c704714d70ecd1008b0b58de53ca8af01;p=dealii.git disable clang warnings compiling the bundled boost with clang without cxx11 causes hundreds of warnings. --- 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