]> https://gitweb.dealii.org/ - dealii.git/commitdiff
disable clang warnings 1087/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 6 Jul 2015 08:27:28 +0000 (04:27 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 9 Jul 2015 12:53:22 +0000 (08:53 -0400)
compiling the bundled boost with clang without cxx11 causes hundreds of
warnings.

cmake/setup_compiler_flags_gnu.cmake

index 119ba6d3bf30567198372e29a59c63c4644579db..d375017db728d27d602765f376dd60d2c86a3d8d 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.