From 8dc13efa09d8161286d73312fd99cadd95ce932c Mon Sep 17 00:00:00 2001 From: Patrick Esser Date: Tue, 15 Sep 2015 16:06:38 +0200 Subject: [PATCH] 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. --- cmake/setup_compiler_flags_gnu.cmake | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5