From c034050bbac6eea6d45296c5147ca02848fc80ab Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 27 Apr 2022 22:07:48 -0700 Subject: [PATCH] cmake/clang: Disable -Wunused-but-set-variable warnings Not sure why this is needed for this branch, but it pretty clearly is -- there are hundreds of set-but-unused variables in the codebase. Signed-off-by: Keith Packard --- cmake/compiler/clang/compiler_flags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/compiler/clang/compiler_flags.cmake b/cmake/compiler/clang/compiler_flags.cmake index 0f481ff59e..e6e9714552 100644 --- a/cmake/compiler/clang/compiler_flags.cmake +++ b/cmake/compiler/clang/compiler_flags.cmake @@ -27,6 +27,7 @@ set_compiler_property(PROPERTY warning_base -Wformat-security -Wno-format-zero-length -Wno-main + -Wno-unused-but-set-variable -Wno-typedef-redefinition )