Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8240259: Disable -Wshift-negative-value warnings
Browse files Browse the repository at this point in the history
Disable warning for gcc/clang.

Reviewed-by: ihse, iklam
  • Loading branch information
Kim Barrett committed May 29, 2020
1 parent e29685f commit 60ac615
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make/hotspot/lib/CompileJvm.gmk
Expand Up @@ -81,7 +81,7 @@ DISABLED_WARNINGS_gcc := parentheses comment unknown-pragmas address \
delete-non-virtual-dtor char-subscripts array-bounds int-in-bool-context \
ignored-qualifiers missing-field-initializers implicit-fallthrough \
empty-body strict-overflow sequence-point maybe-uninitialized \
misleading-indentation cast-function-type
misleading-indentation cast-function-type shift-negative-value

ifeq ($(call check-jvm-feature, zero), true)
DISABLED_WARNINGS_gcc += return-type switch clobbered
Expand All @@ -90,7 +90,8 @@ endif
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
ignored-qualifiers missing-field-initializers mismatched-tags \
shift-negative-value

DISABLED_WARNINGS_xlc := tautological-compare shift-negative-value

Expand Down

0 comments on commit 60ac615

Please sign in to comment.