diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-18 17:27:09 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-18 17:37:54 +0200 |
commit | e0d5c1426c4ecad8832847e8a69b65ea6fc100fc (patch) | |
tree | a1f7fe3bf4518ec61d501c9a3bf4b96e8704a390 /libs/clearlooks-newer | |
parent | 37194ec805807143c2d9cb4a76ab7f258a3d0622 (diff) |
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
Diffstat (limited to 'libs/clearlooks-newer')
-rw-r--r-- | libs/clearlooks-newer/clearlooks_style.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |