summaryrefslogtreecommitdiff
path: root/libs/widgets
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-10-26 14:30:26 +0200
committerRobin Gareus <robin@gareus.org>2018-10-26 14:53:44 +0200
commitc98fc1099d151f9d16a2dc8d2b59d16ea539bb21 (patch)
treea711dfd008aba013520dce2c57ba2dbef08e40a2 /libs/widgets
parent08d205c533fa3380a97d646b3a50c9f9426f3a80 (diff)
Fix some Wimplicit-fallthrough
A "fall through" comment is most portable way to indicate "no break, fallthru" cases. * __attribute__ ((fallthrough)) // is not portable * [[fallthrough]]; // is C++17
Diffstat (limited to 'libs/widgets')
-rw-r--r--libs/widgets/ardour_icon.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/libs/widgets/ardour_icon.cc b/libs/widgets/ardour_icon.cc
index 0980ad95f5..0c5ea1f055 100644
--- a/libs/widgets/ardour_icon.cc
+++ b/libs/widgets/ardour_icon.cc
@@ -1037,8 +1037,10 @@ ArdourWidgets::ArdourIcon::render (cairo_t *cr,
case TransportPanic:
icon_transport_panic (cr, width, height);
break;
- case TransportStart: // no break
- case TransportEnd: // no break
+ case TransportStart:
+ /* fall through */
+ case TransportEnd:
+ /* fall through */
case TransportRange:
icon_transport_ck (cr, icon, width, height);
break;
@@ -1063,8 +1065,10 @@ ArdourWidgets::ArdourIcon::render (cairo_t *cr,
case NudgeRight:
icon_nudge_right (cr, width, height, fg_color);
break;
- case ZoomIn: // no break
- case ZoomOut: // no break
+ case ZoomIn:
+ /* fall through */
+ case ZoomOut:
+ /* fall through */
case ZoomFull:
icon_zoom (cr, icon, width, height, fg_color);
break;