From c3c0578d145c9f058454f42adc23e0534094bcd3 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 25 Jul 2019 01:57:38 +0100 Subject: [PATCH] meson.build: add -Wempty-body Signed-off-by: Yuxuan Shui --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index fa93c90..96deb32 100644 --- a/meson.build +++ b/meson.build @@ -57,7 +57,7 @@ warns = [ 'all', 'cast-function-type', 'ignored-qualifiers', 'missing-parameter- 'nonnull', 'shadow', 'no-type-limits', 'old-style-declaration', 'override-init', 'sign-compare', 'type-limits', 'uninitialized', 'shift-negative-value', 'unused-but-set-parameter', 'unused-parameter', 'implicit-fallthrough', - 'no-unknown-warning-option', 'no-missing-braces', 'conversion' ] + 'no-unknown-warning-option', 'no-missing-braces', 'conversion', 'empty-body' ] foreach w : warns if cc.has_argument('-W'+w) add_global_arguments('-W'+w, language: 'c')