From: Bruno Haible Date: Fri, 2 Jun 2023 23:29:33 +0000 (+0200) Subject: Silence "this statement may fall through" warnings. X-Git-Tag: v0.22~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02fb97b0c8586246dd08a88a16ae5e00850e2c76;p=thirdparty%2Fgettext.git Silence "this statement may fall through" warnings. * gettext-tools/src/x-lua.c: Include attribute.h. (phase2_getc, phase3_get): Use FALLTHROUGH macro. --- 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':