]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "Revert "meson: fail build when encountering unused variables"" revert-39271-revert-hard-error-or-unused-variable 39310/head
authorMike Yuan <me@yhndnzj.com>
Tue, 14 Oct 2025 16:30:24 +0000 (18:30 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 16:30:24 +0000 (18:30 +0200)
This reverts commit 770170fa622372540979e7c66629727dbd4d8ecb.

meson.build

index 555e9460edeb0fac3f25df740789cd0e6d0d5156..6f3783153670f17e35b7c7e3f30bd522512cb006 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.