mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
meson: enable more warnings
This commit is contained in:
parent
a8b01a4559
commit
447ac08578
1 changed files with 26 additions and 0 deletions
26
meson.build
26
meson.build
|
@ -129,6 +129,32 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
warning_flags = [
|
||||||
|
'-Wmissing-declarations',
|
||||||
|
'-Wmissing-prototypes',
|
||||||
|
'-Wold-style-definition',
|
||||||
|
'-Wredundant-decls',
|
||||||
|
'-Wundef',
|
||||||
|
'-Wwrite-strings',
|
||||||
|
'-Wformat',
|
||||||
|
'-Wformat-nonliteral',
|
||||||
|
'-Wformat-security',
|
||||||
|
'-Winit-self',
|
||||||
|
'-Wmissing-include-dirs',
|
||||||
|
'-Waddress',
|
||||||
|
'-Wno-multichar',
|
||||||
|
'-Waggregate-return',
|
||||||
|
'-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('.')
|
configinc = include_directories('.')
|
||||||
plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
|
plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
|
||||||
subdir('ext/libav/')
|
subdir('ext/libav/')
|
||||||
|
|
Loading…
Reference in a new issue