]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Disable -Wundefined-var-template for clang 3713/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 26 Dec 2016 11:42:03 +0000 (05:42 -0600)
committerMatthias Maier <tamiko@43-1.org>
Mon, 26 Dec 2016 11:44:21 +0000 (05:44 -0600)
This warning leads to a lot of false positives. Simply disable the
diagnostic.

Fixes #3705

cmake/setup_compiler_flags_gnu.cmake

index eec2173315c02fd7adb2be0462a55c00db94208c..461c8107eea1af31fc721e854462f99ed68a12f8 100644 (file)
@@ -110,6 +110,12 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-variadic-macros")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-c++11-extensions")
 
+  #
+  # Disable a diagnostic that warns about potentially uninstantiated static
+  # members. This leads to a ton of false positives.
+  #
+  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-undefined-var-template")
+
   #
   # Clang versions prior to 3.6 emit a lot of false positives wrt
   # "-Wunused-function". Also suppress warnings for Xcode older than 6.3

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.