]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Silence "this statement may fall through" warnings.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:29:33 +0000 (01:29 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Jun 2023 13:54:05 +0000 (15:54 +0200)
* gettext-tools/src/x-lua.c: Include attribute.h.
(phase2_getc, phase3_get): Use FALLTHROUGH macro.

gettext-tools/src/x-lua.c

index e8602e0786a13f990b6e8cc5b3c69fa1b4789c8f..78f0d179b40606782fd101025d3b8d5c39adc288 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#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':