base: Enable more warning flags

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-03 12:03:58 +01:00 committed by GStreamer Marge Bot
parent 568ae91a2a
commit a81371bf8b

View file

@ -231,25 +231,32 @@ endif
core_conf.set_quoted('GST_INSTALL_PLUGINS_HELPER', install_plugins_helper)
warning_flags = [
'-Wmissing-declarations',
'-Wredundant-decls',
'-Wundef',
'-Wwrite-strings',
'-Waddress',
'-Wformat',
'-Wformat-nonliteral',
'-Wformat-security',
'-Wimplicit-fallthrough=3',
'-Winit-self',
'-Wmissing-declarations',
'-Wmissing-include-dirs',
'-Waddress',
'-Wmissing-parameter-type',
'-Wno-multichar',
'-Wvla',
'-Wold-style-definition',
'-Wpointer-arith',
'-Wredundant-decls',
'-Wshift-negative-value',
'-Wtype-limits',
'-Wundef',
'-Wvla',
'-Wwrite-strings',
]
# C only warning flags
warning_c_flags = [
'-Wmissing-prototypes',
]
# C++ only warning flags
warning_cxx_flags = [
'-Waggregate-return',
]