From ddb1c5d3c7f53de0412e9668b4eb379687068f27 Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Fri, 20 Dec 2019 11:44:09 +0100 Subject: [PATCH] meson: add additional debug CFLAGS to use the same ones autotools uses (cherry picked from commit 6dc816758801caa84c4e8df8e235497a76efade3) (cherry picked from commit ef786159c43d9852581372a0106d3d3fdfe18a2f) (cherry picked from commit 39f0a20ca5a733de7413f09b0501c47ecfe80d1a) --- meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meson.build b/meson.build index 5a8ed7ee49..9e1842d414 100644 --- a/meson.build +++ b/meson.build @@ -160,16 +160,28 @@ endif if nm_debug common_flags += cc.get_supported_arguments([ + '-Wall', + '-Wextra', '-Wdeclaration-after-statement', '-Wfloat-equal', + '-Wformat-nonliteral', + '-Wformat-security', '-Wimplicit-fallthrough', + '-Wimplicit-function-declaration', '-Winit-self', '-Wlogical-op', '-Wmissing-declarations', '-Wmissing-include-dirs', '-Wmissing-prototypes', + '-Wpointer-arith', + '-Wshadow', + '-Wshift-negative-value', + '-Wstrict-prototypes', + '-Wundef', + '-Wvla', '-Wno-duplicate-decl-specifier', '-Wno-format-truncation', + '-Wno-format-y2k', '-Wno-gnu-variable-sized-type-not-at-end', '-Wno-missing-field-initializers', '-Wno-pragmas',