From 0e8f8dfe1504dc41ec28854dc4eb6c048fc1cd21 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 2 Jan 2025 12:14:37 +0100 Subject: [PATCH] gstreamer: Add more warning flags See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4123 Part-of: --- subprojects/gstreamer/meson.build | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build index 0afb521100..8b3bf51f08 100644 --- a/subprojects/gstreamer/meson.build +++ b/subprojects/gstreamer/meson.build @@ -517,23 +517,28 @@ else endif endif +# NOTE: Keep entries alphabetically sorted warning_flags = [ - '-Wmissing-declarations', - '-Wmissing-prototypes', - '-Wredundant-decls', - '-Wundef', - '-Wwrite-strings', + '-Waddress', + '-Waggregate-return', '-Wformat', '-Wformat-nonliteral', '-Wformat-security', - '-Wold-style-definition', + '-Wimplicit-fallthrough=3', '-Winit-self', + '-Wmissing-declarations', '-Wmissing-include-dirs', - '-Waddress', - '-Waggregate-return', + '-Wmissing-parameter-type', + '-Wmissing-prototypes', '-Wno-multichar', - '-Wvla', + '-Wold-style-definition', '-Wpointer-arith', + '-Wredundant-decls', + '-Wshift-negative-value', + '-Wtype-limits', + '-Wundef', + '-Wvla', + '-Wwrite-strings', ] foreach extra_arg : warning_flags