Skip to content

Commit

Permalink
Fix build for older versions of Clang
Browse files Browse the repository at this point in the history
* Conditionalise ignoring misleading-indentation to only be for Clang 10+
  since that is when that warning was first introduced.
  • Loading branch information
battleblow committed Apr 17, 2020
1 parent beb20c5 commit 4c8a6be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make/hotspot/lib/CompileJvm.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4c8a6be

Please sign in to comment.