meson: fail build when encountering unused variables

This commit is contained in:
Lennart Poettering
2025-09-11 15:26:25 +02:00
parent 0c25f8fd0b
commit e1e1ef09f9

View 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.