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

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

View file

@ -163,16 +163,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',