From: Daniel Arndt Date: Wed, 9 May 2018 18:19:45 +0000 (+0200) Subject: Add compiler flag -Wsuggest-override X-Git-Tag: v9.1.0-rc1~1163^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6baf67470d0b6fced4f7f63010fa5c2efc600b;p=dealii.git Add compiler flag -Wsuggest-override --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 9cae2c93ce..232b15f57a 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -62,6 +62,7 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wsynth") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wsign-compare") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wswitch") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Woverloaded-virtual") +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wsuggest-override") # # Disable Wplacement-new that will trigger a lot of warnings