Skip to content

Commit b83cb81

Browse files
committed
Annotate fallthrough when possible
1 parent 949b527 commit b83cb81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/box.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ twin_dispatch_result_t _twin_box_dispatch(twin_widget_t *widget,
167167
_twin_box_xy_to_widget(box, event->u.pointer.x, event->u.pointer.y);
168168
if (box->button_down && box->button_down->want_focus)
169169
box->focus = box->button_down;
170-
/* fall through ... */
170+
fallthrough;
171171
case TwinEventButtonUp:
172172
case TwinEventMotion:
173173
if (box->button_down) {

src/convolve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static void _twin_subpath_convolve(twin_path_t *path,
162162
break;
163163
case TwinCapButt:
164164
p = ptarget - 1;
165-
/* fall through … */
165+
fallthrough;
166166
case TwinCapRound:
167167
while (p != ptarget) {
168168
if (++p == np)

0 commit comments

Comments
 (0)