mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 23:46:45 +00:00
editing-services: Add more warning flags
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
ee722d0b16
commit
2cb0f6b265
2 changed files with 18 additions and 10 deletions
|
@ -277,20 +277,27 @@ else
|
||||||
message('GStreamer debug system is enabled')
|
message('GStreamer debug system is enabled')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# NOTE: Keep entries alphabetically sorted
|
||||||
warning_flags = [
|
warning_flags = [
|
||||||
'-Wmissing-declarations',
|
'-Waddress',
|
||||||
'-Wmissing-prototypes',
|
# '-Waggregate-return',
|
||||||
'-Wredundant-decls',
|
|
||||||
'-Wundef',
|
|
||||||
'-Wwrite-strings',
|
|
||||||
'-Wformat',
|
'-Wformat',
|
||||||
'-Wformat-security',
|
'-Wformat-security',
|
||||||
|
'-Wimplicit-fallthrough=3',
|
||||||
'-Winit-self',
|
'-Winit-self',
|
||||||
|
'-Wmissing-declarations',
|
||||||
'-Wmissing-include-dirs',
|
'-Wmissing-include-dirs',
|
||||||
'-Waddress',
|
'-Wmissing-parameter-type',
|
||||||
|
'-Wmissing-prototypes',
|
||||||
'-Wno-multichar',
|
'-Wno-multichar',
|
||||||
'-Wvla',
|
'-Wold-style-definition',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
|
'-Wredundant-decls',
|
||||||
|
'-Wshift-negative-value',
|
||||||
|
'-Wtype-limits',
|
||||||
|
'-Wundef',
|
||||||
|
'-Wvla',
|
||||||
|
'-Wwrite-strings',
|
||||||
]
|
]
|
||||||
|
|
||||||
foreach extra_arg : warning_flags
|
foreach extra_arg : warning_flags
|
||||||
|
|
|
@ -1670,14 +1670,15 @@ keyboard_cb (const gchar * key_input, gpointer user_data)
|
||||||
case 't':
|
case 't':
|
||||||
play_switch_trick_mode (self);
|
play_switch_trick_mode (self);
|
||||||
break;
|
break;
|
||||||
|
case '0':
|
||||||
|
play_do_seek (self, 0, self->priv->rate, self->priv->trick_mode);
|
||||||
|
break;
|
||||||
case 27: /* ESC */
|
case 27: /* ESC */
|
||||||
if (key_input[1] == '\0') {
|
if (key_input[1] == '\0') {
|
||||||
g_application_quit (G_APPLICATION (self));
|
g_application_quit (G_APPLICATION (self));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '0':
|
/* FALLTHROUGH */
|
||||||
play_do_seek (self, 0, self->priv->rate, self->priv->trick_mode);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
if (strcmp (key_input, GST_PLAY_KB_ARROW_RIGHT) == 0) {
|
if (strcmp (key_input, GST_PLAY_KB_ARROW_RIGHT) == 0) {
|
||||||
relative_seek (self, +0.08);
|
relative_seek (self, +0.08);
|
||||||
|
|
Loading…
Reference in a new issue