Skip to content

Commit

Permalink
8290900: Build failure with Clang 14+ due to function warning attribute
Browse files Browse the repository at this point in the history
Reviewed-by: kbarrett
  • Loading branch information
Man Cao committed Jul 23, 2022
1 parent 987656d commit 0599a05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/hotspot/share/utilities/compilerWarnings_gcc.hpp
Expand Up @@ -69,7 +69,10 @@

#endif // clang/gcc version check

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

// Use "warning" attribute to detect uses of "forbidden" functions.
//
Expand All @@ -92,6 +95,6 @@
__VA_ARGS__ \
PRAGMA_DIAG_POP

#endif // gcc10+ or clang14+
#endif // gcc10+

#endif // SHARE_UTILITIES_COMPILERWARNINGS_GCC_HPP

1 comment on commit 0599a05

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.