From 8ae56cb484e55decfb16dc7f33637af5165ffe95 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 14 Oct 2025 18:30:24 +0200 Subject: [PATCH] Revert "Revert "meson: fail build when encountering unused variables"" This reverts commit 770170fa622372540979e7c66629727dbd4d8ecb. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 555e9460ede..6f378315367 100644 --- a/meson.build +++ b/meson.build @@ -405,6 +405,7 @@ possible_common_cc_flags = [ '-Werror=shift-overflow=2', '-Werror=strict-flex-arrays', '-Werror=undef', + '-Werror=unused-variable', '-Wfloat-equal', # gperf prevents us from enabling this because it does not emit fallthrough # attribute with clang. -- 2.47.3