summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-12 00:08:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-12 00:08:15 +0000
commit66cfe68f0233b3c301173c3bec7198336d19b416 (patch)
treee9821fa61c6ae680cfa8b6a303737a9f3d9518d6 /man_validate.c
parent0874c59dbe39089dbe25a81d4eb19ebc63baa9ad (diff)
downloadmandoc-66cfe68f0233b3c301173c3bec7198336d19b416.tar.gz
To make the code more readable, delete 283 /* FALLTHROUGH */ comments
that were right between two adjacent case statement. Keep only those 24 where the first case actually executes some code before falling through to the next case.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/man_validate.c b/man_validate.c
index 59baf88a..490c68e6 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -117,7 +117,6 @@ man_valid_post(struct roff_man *man)
check_root(man, n);
break;
case ROFFT_EQN:
- /* FALLTHROUGH */
case ROFFT_TBL:
break;
default:
@@ -207,17 +206,11 @@ post_ft(CHKARGS)
cp = n->child->string;
switch (*cp) {
case '1':
- /* FALLTHROUGH */
case '2':
- /* FALLTHROUGH */
case '3':
- /* FALLTHROUGH */
case '4':
- /* FALLTHROUGH */
case 'I':
- /* FALLTHROUGH */
case 'P':
- /* FALLTHROUGH */
case 'R':
if ('\0' == cp[1])
ok = 1;
@@ -499,7 +492,6 @@ post_vs(CHKARGS)
switch (n->parent->tok) {
case MAN_SH:
- /* FALLTHROUGH */
case MAN_SS:
mandoc_vmsg(MANDOCERR_PAR_SKIP, man->parse, n->line, n->pos,
"%s after %s", man_macronames[n->tok],