Add FALLTHROUGH comments as needed

I investigated these cases and confirmed that the fallthrough behavior
was intentional.
This commit is contained in:
Jeff Epler 2020-09-12 14:14:30 -05:00
parent 4d70872b2b
commit 12d826d941
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ recursiveloop(char *pc, const char *sp, Subject *input, const char **subp, int n
case Char:
if(*sp != *pc++)
return 0;
/* FALLTHROUGH */
case Any:
sp++;
continue;

View File

@ -450,6 +450,7 @@ STATIC mp_obj_t set_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
return MP_OBJ_NEW_SMALL_INT(hash);
}
#endif
/* FALLTHROUGH */
default: return MP_OBJ_NULL; // op not supported
}
}