These seem like a decent-enough set to have, only -Wlogical-op actually
produced a new warning.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
cflags = [
'-Wno-unused-parameter',
'-Wmissing-prototypes',
- '-Wstrict-prototypes'
+ '-Wstrict-prototypes',
+ '-Wundef',
+ '-Wlogical-op',
+ '-Wpointer-arith',
+ '-Wuninitialized',
+ '-Winit-self',
+ '-Wstrict-prototypes',
+ '-Wimplicit-fallthrough',
+ '-Wredundant-decls',
+ '-Wincompatible-pointer-types',
+ '-Wformat=2',
+ '-Wmissing-declarations',
'-fvisibility=hidden',
]
-add_project_arguments(cflags, language : 'c')
+add_project_arguments(cc.get_supported_arguments(cflags), language : 'c')
# config.h
config_h = configuration_data()