Skip to content

Commit

Permalink
CMake: add "-Wno-switch-default" to silence clang 18 useless warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhuk-im committed Apr 22, 2024
1 parent fe63dea commit 9fcdb3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ if (CMAKE_BUILD_TYPE MATCHES "Debug")
#try_c_flag(WRESERVED_ID_MACRO "-Wno-reserved-id-macro")
try_c_flag(WRESERVED_IDENTIFIER "-Wno-reserved-identifier")
#try_c_flag(WSIGN_COMPARE "-Wno-sign-compare")
try_c_flag(WSWITCHDEFAULT "-Wno-switch-default")
try_c_flag(WSWITCH_ENUM "-Wno-switch-enum")
#try_c_flag(WUNUSED_CONST "-Wno-unused-const-variable")
#try_c_flag(WUNUSED_FUNCTION "-Wno-unused-function")
Expand Down

0 comments on commit 9fcdb3e

Please sign in to comment.