From 6ddc268eda75218030160e7df6b17a7981981d7d Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 13 Feb 2025 09:39:01 +0100 Subject: [PATCH] [cmake] drop -Wno-used-but-marked-unused __attribute__((unused)) does emit that warning if a variable is used. The C23/C++17 version [[maybe_unused]] does not, so drop the warning to have consistency --- cmake/CommonCompilerFlags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CommonCompilerFlags.cmake b/cmake/CommonCompilerFlags.cmake index d755cf37b..1031fef4c 100644 --- a/cmake/CommonCompilerFlags.cmake +++ b/cmake/CommonCompilerFlags.cmake @@ -21,6 +21,7 @@ if(ENABLE_WARNING_VERBOSE) -Wno-reserved-identifier -Wno-covered-switch-default -Wno-disabled-macro-expansion + -Wno-used-but-marked-unused ) endif() endif()