]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: fail build when encountering unused variables
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Sep 2025 13:26:25 +0000 (15:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Sep 2025 06:55:52 +0000 (08:55 +0200)
meson.build

index 2e76d44aeb2d76425fc7d5ebfeafd4943fc4de27..e95e9d4a79d03a6ba476895124c24087a2bc0218 100644 (file)
@@ -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.