]> 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>
Mon, 31 Jan 2022 07:10:48 +0000 (18:10 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 3aae009e30663003d61d44a5065af6665c7c776d..96f208874211143a6ea0a0a4d40d661110e3bdaa 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -939,6 +939,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';