From a591436d73517e07f60e2090042c93c42e233441 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Wed, 12 Jul 2017 11:18:21 +0200 Subject: [PATCH] GTK: fix compilation with GCC 7 Change-Id: Ifde706f4705af406fd4eee61a312d8eb0976d972 Reviewed-on: https://code.wireshark.org/review/22598 Reviewed-by: Pascal Quantin --- ui/gtk/gui_utils.c | 2 +- ui/gtk/rlc_lte_graph.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c index 32ba5205d7..aac46d533a 100644 --- a/ui/gtk/gui_utils.c +++ b/ui/gtk/gui_utils.c @@ -1281,7 +1281,7 @@ tree_view_key_pressed_cb(GtkWidget *tree, rc = TRUE; break; } - /* No break - fall through to jumping to the parent */ + /* else fall through to jumping to the parent */ case GDK_BackSpace: if (!expanded) { /* subtree is already collapsed, jump to parent node */ diff --git a/ui/gtk/rlc_lte_graph.c b/ui/gtk/rlc_lte_graph.c index ec729937bf..02b8e51af7 100644 --- a/ui/gtk/rlc_lte_graph.c +++ b/ui/gtk/rlc_lte_graph.c @@ -2190,7 +2190,7 @@ static gboolean key_press_event(GtkWidget *widget _U_, GdkEventKey *event, gpoin do_zoom_out_keyboard(g, FALSE, event->state & GDK_CONTROL_MASK); - + break; /* Direction keys */ case GDK_Left: do_key_motion_left(g, step);