]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add -Woverloaded-virtual flag for gnu compiler 1621/head
authorPatrick Esser <Patrick.Esser@gmx.net>
Tue, 15 Sep 2015 14:06:38 +0000 (16:06 +0200)
committerPatrick Esser <Patrick.Esser@gmx.net>
Tue, 15 Sep 2015 14:06:38 +0000 (16:06 +0200)
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

index 9409c36cc819c9c081acaba7480f46ea65955b38..8dab112884cb3543fe019974273ce35d43169097 100644 (file)
@@ -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

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.