summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-09-12 14:14:30 -0500
committerJeff Epler <jepler@gmail.com>2020-09-12 15:11:29 -0500
commit12d826d941f705fbfa0ced667d1c7efb264d95b1 (patch)
tree29cc8e1775e454d0cdab31a8cd4236be9036c80a
parent4d70872b2be55083c6c9bc97e29233c8779821ad (diff)
Add FALLTHROUGH comments as needed
I investigated these cases and confirmed that the fallthrough behavior was intentional.
-rw-r--r--extmod/re1.5/recursiveloop.c1
-rw-r--r--py/objset.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/extmod/re1.5/recursiveloop.c b/extmod/re1.5/recursiveloop.c
index bb337decf..5c1f37a5a 100644
--- a/extmod/re1.5/recursiveloop.c
+++ b/extmod/re1.5/recursiveloop.c
@@ -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;
diff --git a/py/objset.c b/py/objset.c
index b8f0f07ed..45b5c1260 100644
--- a/py/objset.c
+++ b/py/objset.c
@@ -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
}
}