From: Lennart Poettering Date: Thu, 11 Sep 2025 13:26:25 +0000 (+0200) Subject: meson: fail build when encountering unused variables X-Git-Tag: v259-rc1~524^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1e1ef09f9bc7d2ca1f6876f4f4d13268be5a50d;p=thirdparty%2Fsystemd.git meson: fail build when encountering unused variables --- 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.