From 2b1920464f30f994364472b87bc2f5617816be27 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 + gtk-mixer.project | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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") diff --git a/gtk-mixer.project b/gtk-mixer.project index 8a23d08..637900d 100644 --- a/gtk-mixer.project +++ b/gtk-mixer.project @@ -41,7 +41,7 @@ - +