From e1e1ef09f9bc7d2ca1f6876f4f4d13268be5a50d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 11 Sep 2025 15:26:25 +0200 Subject: [PATCH] meson: fail build when encountering unused variables --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 2e76d44aeb2..e95e9d4a79d 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