From b9b0f408b80e4340993ce3c68471a370b67715b1 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 25 Jan 2022 00:00:00 -0600 Subject: [PATCH] top: avoid a possible warning '-Wimplicit-fallthrough' Signed-off-by: Jim Warner --- top/top.c | 1 + 1 file changed, 1 insertion(+) diff --git a/top/top.c b/top/top.c index 3aae009e..96f20887 100644 --- 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';