Skip to content
Snippets Groups Projects
Commit 030992d0 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle :frog:
Browse files

meson: enable more warnings

parent 0dc61705
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,33 @@ configure_file(output : 'config.h', configuration : cdata)
rtspserver_args = ['-DHAVE_CONFIG_H']
warning_flags = [
'-Wmissing-declarations',
'-Wmissing-prototypes',
'-Wredundant-decls',
'-Wundef',
'-Wwrite-strings',
'-Wformat',
'-Wformat-nonliteral',
'-Wformat-security',
'-Wold-style-definition',
'-Waggregate-return',
'-Wnested-externs',
'-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
rtspserver_incs = include_directories('gst/rtsp-server', '.')
glib_dep = dependency('glib-2.0', version : glib_req,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment