changeset 8756:026cdb8a5e34

8075511: Enable -Woverloaded-virtual C++ warning for HotSpot build Reviewed-by: erikj, simonis, ehelin
author mgerdin
date Tue, 24 Mar 2015 13:49:56 +0100
parents e7220647928c
children 101457a3a36e
files make/linux/makefiles/gcc.make
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/linux/makefiles/gcc.make	Tue Mar 24 10:24:31 2015 +0100
+++ b/make/linux/makefiles/gcc.make	Tue Mar 24 13:49:56 2015 +0100
@@ -207,7 +207,7 @@
   WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
 endif
 
-WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type
+WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type -Woverloaded-virtual
 
 ifeq ($(USE_CLANG),)
   # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit