From 98b050eeebc7a34ba41eb77a13977120308eed14 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 26 Dec 2016 05:42:03 -0600 Subject: [PATCH] CMake: Disable -Wundefined-var-template for clang This warning leads to a lot of false positives. Simply disable the diagnostic. Fixes #3705 --- cmake/setup_compiler_flags_gnu.cmake | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5