validate: Add more warning flags

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-10 08:58:42 +01:00 committed by GStreamer Marge Bot
parent 5c2c1bce6c
commit f20ecfa920
2 changed files with 16 additions and 8 deletions

View file

@ -127,20 +127,27 @@ if gst_debug_disabled and cc.has_argument('-Wno-unused')
add_project_arguments('-Wno-unused', language: 'c')
endif
# NOTE: Keep entries alphabetically sorted
warning_flags = [
'-Wmissing-declarations',
'-Wmissing-prototypes',
'-Wredundant-decls',
'-Wundef',
'-Wwrite-strings',
'-Waddress',
'-Waggregate-return',
'-Wformat',
'-Wformat-security',
'-Wimplicit-fallthrough=3',
'-Winit-self',
'-Wmissing-declarations',
'-Wmissing-include-dirs',
'-Waddress',
'-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

View file

@ -5181,7 +5181,7 @@ handle_bus_message (MessageData * d)
case GST_MESSAGE_ERROR:
is_error = TRUE;
/* Passthrough */
/* FALLTHROUGH */
case GST_MESSAGE_EOS:
{
GstValidateAction *stop_action;
@ -7147,6 +7147,7 @@ _action_set_done (GstValidateAction * action)
case GST_VALIDATE_EXECUTE_ACTION_ERROR:
GST_VALIDATE_REPORT_ACTION (scenario, action,
SCENARIO_ACTION_EXECUTION_ERROR, "Action %s failed", action->type);
/* FALLTHROUGH */
case GST_VALIDATE_EXECUTE_ACTION_ASYNC:
case GST_VALIDATE_EXECUTE_ACTION_IN_PROGRESS:
case GST_VALIDATE_EXECUTE_ACTION_NONE: