From: Karel Zak Date: Fri, 7 Sep 2012 10:05:56 +0000 (+0200) Subject: mark expected fallthrough for static analysers X-Git-Tag: v2.23-rc1~715 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67757329cce3102f220be82e0c5499a1df0969ae;p=thirdparty%2Futil-linux.git mark expected fallthrough for static analysers Signed-off-by: Karel Zak --- diff --git a/fdisks/sfdisk.c b/fdisks/sfdisk.c index 15c6d331ff..2027202ad4 100644 --- a/fdisks/sfdisk.c +++ b/fdisks/sfdisk.c @@ -877,6 +877,7 @@ unitsize(int format) { case F_CYLINDER: if (B.cylindersize) return B.cylindersize; + /* fallthrough */ case F_SECTOR: return 1; case F_BLOCK: @@ -911,6 +912,7 @@ out_partition_header(char *dev, int format, struct geometry G) { default: warnx(_("unimplemented format - using %s\n"), G.cylindersize ? _("cylinders") : _("sectors")); + /* fallthrough */ case F_CYLINDER: if (G.cylindersize) { printf(_("Units: cylinders of %lu bytes, blocks of 1024 bytes" diff --git a/text-utils/colcrt.c b/text-utils/colcrt.c index 3393d0cf3a..e6c18b79b7 100644 --- a/text-utils/colcrt.c +++ b/text-utils/colcrt.c @@ -197,6 +197,7 @@ void colcrt(FILE *f) { outcol &= ~7; outcol--; c = ' '; + /* fallthrough */ default: w = wcwidth(c); if (outcol + w > 132) {