]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mark expected fallthrough for static analysers
authorKarel Zak <kzak@redhat.com>
Fri, 7 Sep 2012 10:05:56 +0000 (12:05 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Sep 2012 10:05:56 +0000 (12:05 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/sfdisk.c
text-utils/colcrt.c

index 15c6d331ff479d451da2249a2b31c8858c112844..2027202ad429e989f42036bf777e09739ea9172e 100644 (file)
@@ -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"
index 3393d0cf3ada0f7900d95a506eb4758a399deee9..e6c18b79b7b53dfb9783da163a58620be751023c 100644 (file)
@@ -197,6 +197,7 @@ void colcrt(FILE *f) {
                        outcol &= ~7;
                        outcol--;
                        c = ' ';
+                       /* fallthrough */
                default:
                        w = wcwidth(c);
                        if (outcol + w > 132) {