]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "meson: fail build when encountering unused variables"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Oct 2025 08:02:49 +0000 (10:02 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 Oct 2025 12:40:09 +0000 (14:40 +0200)
This reverts commit e1e1ef09f9bc7d2ca1f6876f4f4d13268be5a50d.

This change was misguided. The warning is enough during development and will
get fixed, but turning this into a hard failure just makes WIP harder. Also, a
hard error increases the likelyhood of a build failure in scenarios where
somebody is disabling components (as seen e.g. in
ba8801a07640205778c5a62539597c68d7bdb211). We already are not very good at
keeping our codebase compile correctly as it ages, because of changes in
compilers and dependencies, and we should not go out of our way to increase the
probability of failure. Such scenarios are painful for downstream builds.

meson.build

index 6f3783153670f17e35b7c7e3f30bd522512cb006..555e9460edeb0fac3f25df740789cd0e6d0d5156 100644 (file)
@@ -405,7 +405,6 @@ 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.