Skip to content

Commit 12d826d

Browse files
committed
Add FALLTHROUGH comments as needed
I investigated these cases and confirmed that the fallthrough behavior was intentional.
1 parent 4d70872 commit 12d826d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

extmod/re1.5/recursiveloop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ recursiveloop(char *pc, const char *sp, Subject *input, const char **subp, int n
2222
case Char:
2323
if(*sp != *pc++)
2424
return 0;
25+
/* FALLTHROUGH */
2526
case Any:
2627
sp++;
2728
continue;

py/objset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ STATIC mp_obj_t set_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
450450
return MP_OBJ_NEW_SMALL_INT(hash);
451451
}
452452
#endif
453+
/* FALLTHROUGH */
453454
default: return MP_OBJ_NULL; // op not supported
454455
}
455456
}

0 commit comments

Comments
 (0)