mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
meson: enable more warnings
This commit is contained in:
parent
f219111631
commit
ccc5fe4619
1 changed files with 23 additions and 0 deletions
23
meson.build
23
meson.build
|
@ -125,6 +125,29 @@ 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-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
|
||||
|
||||
configinc = include_directories('.')
|
||||
subdir('ges')
|
||||
subdir('plugins')
|
||||
|
|
Loading…
Reference in a new issue