diff --git a/meson.build b/meson.build index 2e76d44aeb..e95e9d4a79 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.