meson: add additional debug CFLAGS to use the same ones autotools uses

(cherry picked from commit 6dc8167588)
(cherry picked from commit ef786159c4)
(cherry picked from commit 39f0a20ca5)
This commit is contained in:
Antonio Cardace 2019-12-20 11:44:09 +01:00 committed by Thomas Haller
parent a1f9f1fde3
commit ddb1c5d3c7

View file

@ -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',