Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk19u Public archive

Commit 763c080

Browse files
Man CaoPaul Hohensee
Man Cao
authored and
Paul Hohensee
committed
8290900: Build failure with Clang 14+ due to function warning attribute
Backport-of: 0599a05
1 parent 689f8f2 commit 763c080

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)