From 9fcdb3e7e64560542221aa2d1e8f869bd725d2fc Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 22 Apr 2024 10:10:47 +0300 Subject: [PATCH] CMake: add "-Wno-switch-default" to silence clang 18 useless warning. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa40e9e..84b35b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")