Warning nokeyworddefine does not need to be turned off for libjvm.
--- a/make/hotspot/lib/CompileGtest.gmk Mon Mar 05 22:16:28 2018 +0100
+++ b/make/hotspot/lib/CompileGtest.gmk Mon Mar 05 22:29:59 2018 +0100
@@ -91,7 +91,7 @@
DISABLED_WARNINGS_clang := undef switch format-nonliteral \
tautological-undefined-compare $(BUILD_LIBJVM_DISABLED_WARNINGS_clang), \
DISABLED_WARNINGS_solstudio := hidef inlafteruse \
- nokeyworddefine unknownpragma w_enumnotused \
+ unknownpragma w_enumnotused \
wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem \
doubunder wunreachable, \
DISABLED_WARNINGS_CXX_microsoft := 4996, \
--- a/make/hotspot/lib/CompileJvm.gmk Mon Mar 05 22:16:28 2018 +0100
+++ b/make/hotspot/lib/CompileJvm.gmk Mon Mar 05 22:29:59 2018 +0100
@@ -231,7 +231,7 @@
array-bounds narrowing empty-body unused-but-set-parameter, \
DISABLED_WARNINGS_clang := tautological-compare, \
DISABLED_WARNINGS_solstudio := hidef inlafteruse \
- nokeyworddefine unknownpragma w_enumnotused \
+ unknownpragma w_enumnotused \
wnoretvalue w_novirtualdescr w_toomanyenumnotused wvarhidenmem \
doubunder wunreachable, \
DISABLED_WARNINGS_xlc := 1540-0216 1540-0198 1540-1090 1540-1639 \