]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Do not set -Wsuggest-override in the project configuration 6568/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 10 May 2018 09:19:35 +0000 (04:19 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 10 May 2018 09:19:35 +0000 (04:19 -0500)
cmake/config/CMakeLists.txt

index 21d43f0d8fc35b2cf02b92f171166c496247fdf8..5d9cce0a5cff50ec938f01614ceec2f5fdd4bb5b 100644 (file)
@@ -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:
 #

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.