From e0d5c1426c4ecad8832847e8a69b65ea6fc100fc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 18 Sep 2019 17:27:09 +0200 Subject: NO-OP: fix some Wimplicit-fallthrough gcc can recognize various regexps in comments. Since C++17 provides [[fallthrough]], using /* fallthrough */ consistently seems appropriate until we switch to C++17. see also https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html --- libs/clearlooks-newer/clearlooks_style.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/clearlooks-newer') diff --git a/libs/clearlooks-newer/clearlooks_style.c b/libs/clearlooks-newer/clearlooks_style.c index fb0ca33239..5556a933df 100644 --- a/libs/clearlooks-newer/clearlooks_style.c +++ b/libs/clearlooks-newer/clearlooks_style.c @@ -56,7 +56,7 @@ static ClearlooksStyleClass *clearlooks_style_class; static GtkStyleClass *clearlooks_parent_class; static void -clearlooks_set_widget_parameters (GtkWidget *widget, +clearlooks_set_widget_parameters (GtkWidget *widget, const GtkStyle *style, GtkStateType state_type, WidgetParameters *params) @@ -726,11 +726,13 @@ clearlooks_style_draw_box (DRAW_ARGS) { case GTK_PROGRESS_RIGHT_TO_LEFT: tmp.x -= 1; + /* fallthrough */ case GTK_PROGRESS_LEFT_TO_RIGHT: tmp.width += 1; break; case GTK_PROGRESS_BOTTOM_TO_TOP: tmp.y -= 1; + /* fallthrough */ case GTK_PROGRESS_TOP_TO_BOTTOM: tmp.height += 1; break; -- cgit v1.2.3