From 1526f4b9e23db51cf00d79d1c86fbedad6984c06 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 4 Sep 2023 04:21:20 +0300 Subject: [PATCH 18/18] Meson: Port compiler warning options from autotools See osdn #48577 Signed-off-by: Marko Lindqvist --- meson.build | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index b0210a2e25..cb2335c0c3 100644 --- a/meson.build +++ b/meson.build @@ -14,11 +14,23 @@ else endif c_args = [ - '-Wno-nonnull-compare' + '-Wno-nonnull-compare', + '-Wnested-externs' ] c_cpp_args = [ - '-Wmissing-declarations' + '-Wall', + '-Wmissing-declarations', + '-Wpointer-arith', + '-Wcast-align', + '-Wmissing-prototypes', + '-Wmissing-declarations', + '-Wformat', + '-Wformat-security', + '-Wshadow', + '-Wold-style-declaration', + '-Wold-style-definition', + '-Wtype-limits' ] foreach arg : c_args -- 2.40.1