From a0b223263eb83a93ea732c71286efb7404617b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 19 Jun 2019 21:11:01 +0200 Subject: [PATCH] wtext.c Remove warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch removes the FALLTHRU warnings in wtext.c. Only includes the comments for GCC7. wtext.c: In function ‘handleActionEvents’: wtext.c:2508:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (event->xbutton.button == Button2) { ^ wtext.c:2547:2: note: here case ButtonRelease: ^~~~ wtext.c: In function ‘handleTextKeyPress’: wtext.c:2307:11: warning: this statement may fall through [-Wimplicit-fallthrough=] *buffer = '\n'; ~~~~~~~~^~~~~~ wtext.c:2308:2: note: here default: ^~~~~~~ Signed-off-by: Rodolfo García Peñas (kix) --- WINGs/wtext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WINGs/wtext.c b/WINGs/wtext.c index 93090e40..1e15b985 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -2305,6 +2305,7 @@ static void handleTextKeyPress(Text * tPtr, XEvent * event) case XK_Return: *buffer = '\n'; + /* FALLTHRU */ default: if (*buffer != 0 && !control_pressed) { insertTextInteractively(tPtr, buffer, strlen(buffer)); @@ -2544,6 +2545,7 @@ static void handleActionEvents(XEvent * event, void *data) break; } + /* FALLTHRU */ case ButtonRelease: if (tPtr->flags.pointerGrabbed) { tPtr->flags.pointerGrabbed = False;