From: Patrick Esser Date: Tue, 15 Sep 2015 14:06:38 +0000 (+0200) Subject: add -Woverloaded-virtual flag for gnu compiler X-Git-Tag: v8.4.0-rc2~399^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1621%2Fhead;p=dealii.git add -Woverloaded-virtual flag for gnu compiler Add warning about overloaded virtual functions which are shadowed when only a subset of its signatures are overridden in a derived class. --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 9409c36cc8..8dab112884 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -64,6 +64,7 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wwrite-strings") 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") # # Disable Wlong-long that will trigger a lot of warnings when compiling