summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Cardace <acardace@redhat.com>2019-12-20 11:44:09 +0100
committerThomas Haller <thaller@redhat.com>2020-04-20 20:35:18 +0200
commitddb1c5d3c7f53de0412e9668b4eb379687068f27 (patch)
tree08bc6d00d7241c78e467d8765b3eb75770824c89
parenta1f9f1fde3091a7d09a409390a50f76723cbb562 (diff)
downloadNetworkManager-ddb1c5d3c7f53de0412e9668b4eb379687068f27.tar.gz
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)
-rw-r--r--meson.build12
1 files changed, 12 insertions, 0 deletions
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',