]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Suppress clang warnings when compiling bundled boost 1.56 121/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 29 Aug 2014 20:25:39 +0000 (16:25 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 29 Aug 2014 20:26:10 +0000 (16:26 -0400)
Clang generates a bunch of warnings of the type:
bundled/boost-1.56.0/include/boost/preprocessor/tuple/eat.hpp:23:26: warning: variadic macros are a C99 feature [-Wvariadic-macros]
bundled/boost-1.56.0/include/boost/mpl/if.hpp:131:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]

This patch just disables those warnings. Also see https://code.google.com/p/dealii/issues/detail?id=252

cmake/setup_compiler_flags_gnu.cmake

index 21159946c17ae2c521a7a4030e6e4e154d006b46..838e1ba0795beaed7a6e533dc00195232c900ca8 100644 (file)
@@ -113,6 +113,11 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-private-field")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-variable")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unsupported-friend")
+
+  # suppress warnings in boost 1.56:
+  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-c++11-extensions")
+  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-c99-extensions")
+  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-variadic-macros")
 ENDIF()
 
 

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.