From 9d3c1058b0d34c7ee2a27d7ad6fe347b0503c2c8 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Tue, 31 Dec 2024 02:43:57 +0100 Subject: [PATCH] do not turn "switch" warnings into errors --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index aaebef0b..7408e190 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD 17) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic -Werror) + add_compile_options(-Wno-error=switch) add_link_options("-Wl,-z,relro,-z,now,-z,defs") endif()