mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 17:44:48 +09:00
Disable new warnings introduced with clang 18 (#99811)
clang 18 introduces `-Wswitch-default`, which requires that every switch must have a `default` branch. We can add missing `default` in switches, but the other option `-Wcovered-switch-default` complains if all the cases in a switch are exhaustive and `default` doesn't do anything. So disable one of these mutually exclusive warnings. We will also need to merge in the changes from https://github.com/dotnet/arcade/pull/14572 to actually try and use clang-18/clang++-18.
This commit is contained in:
parent
f36aa7ec73
commit
ac1b4786b5
1 changed files with 3 additions and 0 deletions
|
@ -612,6 +612,9 @@ if (CLR_CMAKE_HOST_UNIX)
|
|||
# other clang 16.0 suppressions
|
||||
add_compile_options(-Wno-single-bit-bitfield-constant-conversion)
|
||||
add_compile_options(-Wno-cast-function-type-strict)
|
||||
|
||||
# clang 18.1 supressions
|
||||
add_compile_options(-Wno-switch-default)
|
||||
else()
|
||||
add_compile_options(-Wno-uninitialized)
|
||||
add_compile_options(-Wno-strict-aliasing)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue