From: Matthias Maier Date: Mon, 26 Dec 2016 11:42:03 +0000 (-0600) Subject: CMake: Disable -Wundefined-var-template for clang X-Git-Tag: v8.5.0-rc1~307^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98b050eeebc7a34ba41eb77a13977120308eed14;p=dealii.git CMake: Disable -Wundefined-var-template for clang This warning leads to a lot of false positives. Simply disable the diagnostic. Fixes #3705 --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index eec2173315..461c8107ee 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -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