Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2018 14:12:32 +0200
From:      Sebastian Huber <sebastian.huber@embedded-brains.de>
To:        freebsd-hackers@freebsd.org
Subject:   [PATCH] Add fallthrough comment to kvprintf()
Message-ID:  <20180717121232.18799-1-sebastian.huber@embedded-brains.de>

next in thread | raw e-mail | index | archive | help
STYLE(9) recommends a FALLTHROUGH comment.  Coverity Scan also
complained about this area.
---
 sys/kern/subr_prf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 618d47fe81a..e93aa9cc44c 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -716,6 +716,7 @@ reswitch:	switch (ch = (u_char)*fmt++) {
 				padc = '0';
 				goto reswitch;
 			}
+			/* FALLTHROUGH */
 		case '1': case '2': case '3': case '4':
 		case '5': case '6': case '7': case '8': case '9':
 				for (n = 0;; ++fmt) {
-- 
2.13.7




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180717121232.18799-1-sebastian.huber>