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
This commit is contained in:
Robin Gareus
2018-10-26 14:30:26 +02:00
parent 08d205c533
commit c98fc1099d
5 changed files with 15 additions and 10 deletions

View File

@@ -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;