From c05139df881fb2c901e294608842c2592c4083d7 Mon Sep 17 00:00:00 2001 From: zrj Date: Thu, 26 Apr 2018 10:08:02 +0300 Subject: [PATCH] ident(1): Suppress implicit-fallthrough warnings. Logic looks to be OK. --- usr.bin/indent/indent.c | 2 ++ usr.bin/indent/lexi.c | 1 + 2 files changed, 3 insertions(+) diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index 5bb5eef975..fc148dfc5b 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -322,6 +322,7 @@ main(int argc, char **argv) goto sw_buffer; /* go to common code to get out of * this loop */ } + /* FALLTHROUGH */ case comment: /* we have a comment, so we must copy it into * the buffer */ if (!flushed_nl || sc_end != NULL) { @@ -359,6 +360,7 @@ main(int argc, char **argv) fill_buffer(); break; } + /* FALLTHROUGH */ default: /* it is the start of a normal statement */ if (flushed_nl) /* if we flushed a newline, make sure it is * put back */ diff --git a/usr.bin/indent/lexi.c b/usr.bin/indent/lexi.c index 1cd29f27fa..85cc868b65 100644 --- a/usr.bin/indent/lexi.c +++ b/usr.bin/indent/lexi.c @@ -304,6 +304,7 @@ lexi(void) case 7: ps.sizeof_keyword = true; + /* FALLTHROUGH */ default: /* all others are treated like any other * identifier */ return (ident); -- 2.11.4.GIT