mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
base: Enable more warning flags
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
568ae91a2a
commit
a81371bf8b
1 changed files with 13 additions and 6 deletions
|
@ -231,25 +231,32 @@ endif
|
||||||
core_conf.set_quoted('GST_INSTALL_PLUGINS_HELPER', install_plugins_helper)
|
core_conf.set_quoted('GST_INSTALL_PLUGINS_HELPER', install_plugins_helper)
|
||||||
|
|
||||||
warning_flags = [
|
warning_flags = [
|
||||||
'-Wmissing-declarations',
|
'-Waddress',
|
||||||
'-Wredundant-decls',
|
|
||||||
'-Wundef',
|
|
||||||
'-Wwrite-strings',
|
|
||||||
'-Wformat',
|
'-Wformat',
|
||||||
'-Wformat-nonliteral',
|
'-Wformat-nonliteral',
|
||||||
'-Wformat-security',
|
'-Wformat-security',
|
||||||
|
'-Wimplicit-fallthrough=3',
|
||||||
'-Winit-self',
|
'-Winit-self',
|
||||||
|
'-Wmissing-declarations',
|
||||||
'-Wmissing-include-dirs',
|
'-Wmissing-include-dirs',
|
||||||
'-Waddress',
|
'-Wmissing-parameter-type',
|
||||||
'-Wno-multichar',
|
'-Wno-multichar',
|
||||||
'-Wvla',
|
'-Wold-style-definition',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
|
'-Wredundant-decls',
|
||||||
|
'-Wshift-negative-value',
|
||||||
|
'-Wtype-limits',
|
||||||
|
'-Wundef',
|
||||||
|
'-Wvla',
|
||||||
|
'-Wwrite-strings',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# C only warning flags
|
||||||
warning_c_flags = [
|
warning_c_flags = [
|
||||||
'-Wmissing-prototypes',
|
'-Wmissing-prototypes',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# C++ only warning flags
|
||||||
warning_cxx_flags = [
|
warning_cxx_flags = [
|
||||||
'-Waggregate-return',
|
'-Waggregate-return',
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue