mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
meson: enable more warnings
This commit is contained in:
parent
831a70bf9a
commit
9a7591397a
1 changed files with 24 additions and 0 deletions
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')
|
||||
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')
|
||||
|
||||
python3 = import('python3').find_python()
|
||||
|
|
Loading…
Reference in a new issue