diff --git a/make/hotspot/lib/CompileJvm.gmk b/make/hotspot/lib/CompileJvm.gmk index 39ed0d8dd5..b63813f6a7 100644 --- a/make/hotspot/lib/CompileJvm.gmk +++ b/make/hotspot/lib/CompileJvm.gmk @@ -91,7 +91,11 @@ DISABLED_WARNINGS_clang := tautological-compare \ undefined-var-template sometimes-uninitialized unknown-pragmas \ delete-non-virtual-dtor missing-braces char-subscripts \ ignored-qualifiers missing-field-initializers mismatched-tags \ - unnamed-type-template-args misleading-indentation + unnamed-type-template-args + +ifneq (,$(filter 1%,$(CC_VERSION_NUMBER))) + DISABLED_WARNINGS_clang += misleading-indentation +endif DISABLED_WARNINGS_solstudio := labelnotused hidef w_novirtualdescr inlafteruse \ unknownpragma doubunder w_enumnotused w_toomanyenumnotused \