changeset 54711:297ddf282627

8223309: test failing due to self-assign-overloaded Reviewed-by: tbell Contributed-by: johan.vos@gluonhq.com, erik.joelsson@oracle.com
author erikj
date Fri, 03 May 2019 09:34:02 -0700
parents aa29971a17a1
children 029b56549e22
files make/autoconf/flags-cflags.m4 make/hotspot/lib/CompileGtest.gmk
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/autoconf/flags-cflags.m4	Fri May 03 12:33:08 2019 -0400
+++ b/make/autoconf/flags-cflags.m4	Fri May 03 09:34:02 2019 -0700
@@ -219,7 +219,7 @@
           -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual"
       WARNINGS_ENABLE_ALL="-Wall -Wextra -Wformat=2 $WARNINGS_ENABLE_ADDITIONAL"
 
-      DISABLED_WARNINGS="unused-parameter unused"
+      DISABLED_WARNINGS="unknown-warning-option unused-parameter unused"
 
       if test "x$OPENJDK_TARGET_OS" = xmacosx; then
         # missing-method-return-type triggers in JavaNativeFoundation framework
--- a/make/hotspot/lib/CompileGtest.gmk	Fri May 03 12:33:08 2019 -0400
+++ b/make/hotspot/lib/CompileGtest.gmk	Fri May 03 09:34:02 2019 -0700
@@ -76,7 +76,8 @@
     DISABLED_WARNINGS_gcc := $(DISABLED_WARNINGS_gcc) \
         undef, \
     DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang) \
-        undef switch format-nonliteral tautological-undefined-compare, \
+        undef switch format-nonliteral tautological-undefined-compare \
+        self-assign-overloaded, \
     DISABLED_WARNINGS_solstudio := $(DISABLED_WARNINGS_solstudio) \
         identexpected, \
     DISABLED_WARNINGS_microsoft := $(DISABLED_WARNINGS_microsoft) \