From bda8f80cbfcc15e0e44edf3e219d2400b99457e5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 18 Jul 2018 08:54:57 +0200 Subject: score: Add a FALLTHROUGH comment to kvprintf() This change was added to the FreeBSD version of this function. This was spotted by Coverity Scan. --- cpukit/score/src/iovprintf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/score/src/iovprintf.c b/cpukit/score/src/iovprintf.c index cf54ecbbc7..f3f8219261 100644 --- a/cpukit/score/src/iovprintf.c +++ b/cpukit/score/src/iovprintf.c @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1986, 1988, 1991, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. @@ -37,7 +39,7 @@ #include #include -__FBSDID("$FreeBSD: head/sys/kern/subr_prf.c 320908 2017-07-12 07:30:14Z rlibby $"); +__FBSDID("$FreeBSD: head/sys/kern/subr_prf.c 336417 2018-07-17 14:56:54Z markj $"); #include #include @@ -157,6 +159,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) { -- cgit v1.2.3