Skip to content

Commit 0599a05

Browse files
author
Man Cao
committed
8290900: Build failure with Clang 14+ due to function warning attribute
Reviewed-by: kbarrett
1 parent 987656d commit 0599a05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/hotspot/share/utilities/compilerWarnings_gcc.hpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@
6969

7070
#endif // clang/gcc version check
7171

72-
#if (__GNUC__ >= 10) || (defined(__clang_major__) && (__clang_major__ >= 14))
72+
#if (__GNUC__ >= 10)
73+
// TODO: Re-enable warning attribute for Clang once
74+
// https://github.com/llvm/llvm-project/issues/56519 is fixed and released.
75+
// || (defined(__clang_major__) && (__clang_major__ >= 14))
7376

7477
// Use "warning" attribute to detect uses of "forbidden" functions.
7578
//
@@ -92,6 +95,6 @@
9295
__VA_ARGS__ \
9396
PRAGMA_DIAG_POP
9497

95-
#endif // gcc10+ or clang14+
98+
#endif // gcc10+
9699

97100
#endif // SHARE_UTILITIES_COMPILERWARNINGS_GCC_HPP

0 commit comments

Comments
 (0)