]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix compilation errors with older C compilers (regression 2025-12-19).
authorBruno Haible <bruno@clisp.org>
Mon, 22 Dec 2025 14:05:13 +0000 (15:05 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Dec 2025 14:05:33 +0000 (15:05 +0100)
* gnulib-local/lib/xerror.c (multiline_internal): Add a semicolon between
a label and a declaration.
* gettext-tools/src/write-po.c (wrap): Likewise.
* gettext-tools/src/format-go.c (format_parse): Likewise.

gettext-tools/src/format-go.c
gettext-tools/src/write-po.c
gnulib-local/lib/xerror.c

index 4eb6adb643cf1e24a3e59753ed0843a0c9e97190..c1563e7492e2b31f4b30815bdf038a34b4224416 100644 (file)
@@ -384,7 +384,7 @@ format_parse (const char *format, bool translated, char *fdi,
               }
           }
 
-       parse_specifier:
+       parse_specifier: ;
         /* Parse the specifier.  */
         enum format_arg_type type;
         switch (*format)
index 69bfe8a0c9264b3bf254e9935eca1fabdceb646d..18c12fb151848aa9fa3eb863df2db1dd486097bd 100644 (file)
@@ -993,7 +993,7 @@ wrap (const message_ty *mp, ostream_t stream,
       /* Adjust for indentation of subsequent lines.  */
       width -= startcol_after_break;
 
-    recompute:
+    recompute: ;
       /* The line starts with different things depending on whether it
          is the first line, and if we are using the indented style.
          See INDENT-F.  */
index 6401ee51fb12ce2ae7d9d003a76555013377b487..264d35e0d1832e5f6e031eae0ef90d4592c95265 100644 (file)
@@ -67,7 +67,7 @@ multiline_internal (char *prefix, size_t prefix_width, char *message)
       for (size_t i = width; i > 0; i--)
         putc (' ', stderr);
 
-    after_indent:
+    after_indent: ;
       const char *np = strchr (cp, '\n');
 
       if (np == NULL || np[1] == '\0')