]> granicus.if.org Git - procps-ng/commitdiff
top: avoid a possible warning '-Wimplicit-fallthrough'
authorJim Warner <james.warner@comcast.net>
Tue, 25 Jan 2022 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Tue, 1 Feb 2022 05:11:55 +0000 (16:11 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 82eeb7c3793b9d58280fe42996ebe0313bd22e3f..26029c30542edd123d8265d24d452219e38f36f2 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -1043,6 +1043,7 @@ static void show_special (int interact, const char *glob) {
                // ( '~1' thru '~8' is valid range, '~0' is never actually used )
                *(sub_end + 1) = '\0';  // extend str end, then fall through
                *(sub_end + 2) = '\0';  // ( +1 optimization for usual path )
+            // fall through
             case 1: case 2: case 3: case 4:
             case 5: case 6: case 7: case 8:
                *sub_end = '\0';