From 02fb97b0c8586246dd08a88a16ae5e00850e2c76 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Jun 2023 01:29:33 +0200 Subject: [PATCH] Silence "this statement may fall through" warnings. * gettext-tools/src/x-lua.c: Include attribute.h. (phase2_getc, phase3_get): Use FALLTHROUGH macro. --- gettext-tools/src/x-lua.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gettext-tools/src/x-lua.c b/gettext-tools/src/x-lua.c index e8602e078..78f0d179b 100644 --- a/gettext-tools/src/x-lua.c +++ b/gettext-tools/src/x-lua.c @@ -28,6 +28,7 @@ #include #include +#include "attribute.h" #include "message.h" #include "rc-str-list.h" #include "xgettext.h" @@ -340,8 +341,7 @@ phase2_getc () comment_line_end (1); comment_start (); lineno = line_number; - /* Intentionally not breaking. */ - + FALLTHROUGH; default: right_bracket = false; } @@ -509,7 +509,7 @@ phase3_get (token_ty *tp) case '\n': if (last_non_comment_line > last_comment_line) savable_comment_reset (); - /* Intentionally not breaking. */ + FALLTHROUGH; case ' ': case '\t': case '\f': -- 2.47.2