8295435: Build failure with GCC7 after JDK-8294314 due to strict-overflow warnings

Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Reviewed-by: shade, ihse
This commit is contained in:
Jie Fu 2022-10-19 07:41:27 +00:00
parent 3f4964f83d
commit f502ab85c9

View File

@ -94,6 +94,8 @@ DISABLED_WARNINGS_clang := ignored-qualifiers sometimes-uninitialized \
ifneq ($(DEBUG_LEVEL), release)
# Assert macro gives warning
DISABLED_WARNINGS_clang += tautological-constant-out-of-range-compare
# Some reasonable asserts produce warnings on GCC <= 7
DISABLED_WARNINGS_gcc += strict-overflow
endif
DISABLED_WARNINGS_xlc := tautological-compare shift-negative-value