From 0f07b3522f71ed0f95e61831c9d56fc33b7df3f4 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 22 Nov 2021 23:52:13 -0800 Subject: [PATCH] Add -wno-unused-but-set-variable to disabled warnings --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0fcfd10a..d9e1a4f49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -247,7 +247,7 @@ else() add_compile_options($<$:-fno-rtti> $<$:-fno-exceptions> -Wall -Wno-multichar -Werror=implicit-fallthrough - -Wno-unused-variable -Wno-unused-result + -Wno-unused-variable -Wno-unused-result -Wno-unused-but-set-variable -Wno-unused-function -Wno-sign-compare -Wno-unknown-pragmas -Werror) # doesn't work with generator expression in add_compile_options? if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")