Now I really confirm this compiles without warnings on gcc 7.2.0, 6.3.0, 5.4.1, 4.9.2, 4.8.5.
--- a/make/hotspot/lib/CompileGtest.gmk Mon Mar 05 23:15:38 2018 +0100
+++ b/make/hotspot/lib/CompileGtest.gmk Mon Mar 05 23:20:54 2018 +0100
@@ -87,7 +87,9 @@
delete-non-virtual-dtor ignored-qualifiers parentheses reorder \
unused-local-typedefs unused-variable address \
missing-field-initializers unused-but-set-variable char-subscripts \
- array-bounds narrowing empty-body unused-but-set-parameter undef, \
+ array-bounds narrowing empty-body unused-but-set-parameter undef \
+ maybe-uninitialized logical-op \
+ implicit-fallthrough expansion-to-defined, \
DISABLED_WARNINGS_clang := undef switch format-nonliteral \
tautological-undefined-compare $(BUILD_LIBJVM_DISABLED_WARNINGS_clang), \
DISABLED_WARNINGS_solstudio := $(BUILD_LIBJVM_DISABLED_WARNINGS_solstudio), \