summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-08-16 23:57:42 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-08-16 23:57:42 -0400
commitdd7dfb391085a122631395cf001b196feedc7747 (patch)
tree08234b3ae65b70ec61067ebe67d059326480075e
parent2aceb02c680b689e7cecb07573347418f2dd03be (diff)
downloadbfs-dd7dfb391085a122631395cf001b196feedc7747.tar.xz
Add some missing fallthrough comments
-rw-r--r--parse.c1
-rw-r--r--printf.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 89a47b7..7f9ac9c 100644
--- a/parse.c
+++ b/parse.c
@@ -1829,6 +1829,7 @@ static struct expr *parse_perm(struct parser_state *state, int field, int arg2)
++mode;
break;
}
+ // Fallthrough
default:
expr->mode_cmp = MODE_EXACT;
break;
diff --git a/printf.c b/printf.c
index 0a969d8..c2b165e 100644
--- a/printf.c
+++ b/printf.c
@@ -590,6 +590,7 @@ struct bfs_printf *parse_bfs_printf(const char *format, struct cmdline *cmdline)
case '0':
case '+':
must_be_numeric = true;
+ // Fallthrough
case ' ':
case '-':
if (strchr(directive->str, c)) {