From cbe51b04eb12026d53cb0522f92c8a67f25a574d Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 10 May 2018 04:19:35 -0500 Subject: [PATCH] CMake: Do not set -Wsuggest-override in the project configuration --- cmake/config/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/config/CMakeLists.txt b/cmake/config/CMakeLists.txt index 21d43f0d8f..5d9cce0a5c 100644 --- a/cmake/config/CMakeLists.txt +++ b/cmake/config/CMakeLists.txt @@ -74,8 +74,17 @@ STRIP_FLAG(DEAL_II_LINKER_FLAGS "-Wl,--as-needed") # Strip -Wno-deprecated-declarations from DEAL_II_CXX_FLAGS so that # deprecation warnings are actually shown for user code: # + STRIP_FLAG(DEAL_II_CXX_FLAGS "-Wno-deprecated-declarations") +# +# Strip -Wsuggest-override. Enabling this warning is a stylistic choice +# that might create a substantial amount of warnings in user codebases. +# Let's be nice and disable the flag for now. +# + +STRIP_FLAG(DEAL_II_CXX_FLAGS "-Wsuggest-override") + # # Populate a bunch of CONFIG_* variables with useful information: # -- 2.39.5