meson: enable more warnings
This commit is contained in:
parent
831a70bf9a
commit
9a7591397a
24
meson.build
24
meson.build
@ -108,6 +108,30 @@ if gst_debug_disabled and cc.has_argument('-Wno-unused')
|
|||||||
add_project_arguments('-Wno-unused', language: 'c')
|
add_project_arguments('-Wno-unused', language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
warning_flags = [
|
||||||
|
'-Wmissing-declarations',
|
||||||
|
'-Wmissing-prototypes',
|
||||||
|
'-Wredundant-decls',
|
||||||
|
'-Wundef',
|
||||||
|
'-Wwrite-strings',
|
||||||
|
'-Wformat',
|
||||||
|
'-Wformat-nonliteral',
|
||||||
|
'-Wformat-security',
|
||||||
|
'-Winit-self',
|
||||||
|
'-Wmissing-include-dirs',
|
||||||
|
'-Waddress',
|
||||||
|
'-Wno-multichar',
|
||||||
|
'-Wdeclaration-after-statement',
|
||||||
|
'-Wvla',
|
||||||
|
'-Wpointer-arith',
|
||||||
|
]
|
||||||
|
|
||||||
|
foreach extra_arg : warning_flags
|
||||||
|
if cc.has_argument (extra_arg)
|
||||||
|
add_project_arguments([extra_arg], language: 'c')
|
||||||
|
endif
|
||||||
|
endforeach
|
||||||
|
|
||||||
subdir('validate')
|
subdir('validate')
|
||||||
|
|
||||||
python3 = import('python3').find_python()
|
python3 = import('python3').find_python()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user