From 4c8a6be8eceb9fcdacd6e62f36d7342063efdc79 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Fri, 17 Apr 2020 15:35:42 -0700 Subject: [PATCH] Fix build for older versions of Clang * Conditionalise ignoring misleading-indentation to only be for Clang 10+ since that is when that warning was first introduced. --- make/hotspot/lib/CompileJvm.gmk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 \