-
Notifications
You must be signed in to change notification settings - Fork 5k
[release/7.0] Suppress clang-16 warnings (backport #81573) #84444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -447,6 +447,15 @@ if (CLR_CMAKE_HOST_UNIX) | |
add_compile_options(-Wno-incompatible-ms-struct) | ||
|
||
add_compile_options(-Wno-reserved-identifier) | ||
|
||
# clang 16.0 introduced buffer hardening https://discourse.llvm.org/t/rfc-c-buffer-hardening/65734 | ||
# which we are not conforming to yet. | ||
add_compile_options(-Wno-unsafe-buffer-usage) | ||
|
||
# other clang 16.0 suppressions | ||
add_compile_options(-Wno-single-bit-bitfield-constant-conversion) | ||
add_compile_options(-Wno-cast-function-type-strict) | ||
add_compile_options(-Wno-incompatible-function-pointer-types-strict) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know what needs this? I can't seem to find this needed in any other place. I also didn't see it on lld's man page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This came up when trying to build on Alpine Linux with clang 16. I reported it in #81577 to not forget to investigate. |
||
else() | ||
add_compile_options(-Wno-uninitialized) | ||
add_compile_options(-Wno-strict-aliasing) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,7 @@ g_dacTable | |
|
||
; Used by profilers | ||
MetaDataGetDispenser | ||
|
||
; FreeBSD needs to reexport these | ||
__progname | ||
environ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,3 @@ g_dacTable | |
|
||
; Used by profilers | ||
MetaDataGetDispenser | ||
|
||
; FreeBSD needs to reexport these | ||
__progname | ||
environ |
Uh oh!
There was an error while loading. Please reload this page.