From a941bc2de674fdd77cdbbdf3641309fc39bfc0c4 Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Thu, 9 Jun 2022 00:01:31 +0000 Subject: [PATCH] 8288082: Build failure due to __clang_major__ is not defined after JDK-8214976 Reviewed-by: dholmes --- src/hotspot/share/utilities/compilerWarnings_gcc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/utilities/compilerWarnings_gcc.hpp b/src/hotspot/share/utilities/compilerWarnings_gcc.hpp index c8cfcdae1d2..7a039076a25 100644 --- a/src/hotspot/share/utilities/compilerWarnings_gcc.hpp +++ b/src/hotspot/share/utilities/compilerWarnings_gcc.hpp @@ -63,7 +63,7 @@ #endif // clang/gcc version check -#if (__GNUC__ >= 9) || (__clang_major__ >= 14) +#if (__GNUC__ >= 9) || (defined(__clang_major__) && (__clang_major__ >= 14)) // Use "warning" attribute to detect uses of "forbidden" functions. //