From 8b9ac40710e9ee3a35f4fda1db7c784bcc44b57d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 4 Jan 2025 10:06:46 +0100 Subject: [PATCH] good: Enable extra warning flags Part-of: --- subprojects/gst-plugins-good/meson.build | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-good/meson.build b/subprojects/gst-plugins-good/meson.build index 674322af40..237ed98cb2 100644 --- a/subprojects/gst-plugins-good/meson.build +++ b/subprojects/gst-plugins-good/meson.build @@ -248,17 +248,27 @@ cdata.set_quoted('GETTEXT_PACKAGE', 'gst-plugins-good-1.0') cdata.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))) cdata.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/new') +# NOTE: Keep entries alphabetically sorted warning_flags = [ - '-Wmissing-declarations', - '-Wredundant-decls', - '-Wwrite-strings', + '-Waddress', + '-Wformat', + '-Wformat-security', + '-Wimplicit-fallthrough=3', '-Winit-self', + '-Wmissing-declarations', '-Wmissing-include-dirs', + '-Wmissing-parameter-type', '-Wno-multichar', - '-Wvla', '-Wpointer-arith', + '-Wredundant-decls', + '-Wshift-negative-value', + '-Wtype-limits', + '-Wundef', + '-Wvla', + '-Wwrite-strings', ] +# C-only warnings warning_c_flags = [ '-Wmissing-prototypes', '-Wold-style-definition',