From 6f8ea5f740b7406d1cdbdfca966e1727f0a47c0a Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 25 Jul 2019 01:02:23 +0100 Subject: [PATCH] meson.build: update warning flags -Wextra is removed, some of the warning flags included in -Wextra are now explicitly set. -Wno-unused-parameter is removed. The warnings will take a while to fix. Signed-off-by: Yuxuan Shui --- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index a31b370..fa93c90 100644 --- a/meson.build +++ b/meson.build @@ -53,8 +53,11 @@ if cc.has_header('stdc-predef.h') add_global_arguments('-DHAS_STDC_PREDEF_H', language: 'c') endif -warns = [ 'all', 'extra', 'no-unused-parameter', 'nonnull', 'shadow', 'no-type-limits', - 'implicit-fallthrough', 'no-unknown-warning-option', 'no-missing-braces', 'conversion' ] +warns = [ 'all', 'cast-function-type', 'ignored-qualifiers', 'missing-parameter-type', + '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' ] foreach w : warns if cc.has_argument('-W'+w) add_global_arguments('-W'+w, language: 'c')