]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: paste: fix build failure with C99
authorPádraig Brady <P@draigBrady.com>
Wed, 14 Jan 2026 11:38:59 +0000 (11:38 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 14 Jan 2026 11:38:59 +0000 (11:38 +0000)
GCC 10.2 gave the following error:
"error: a label can only be part of a statement
 and a declaration is not a statement"

* src/fold.c (fold_file): Add a ";" to avoid C2X specific syntax.

src/paste.c

index 01ed596e23dcb17df8b66d7725220fa2b6ce0761..5309f0e370a6d83cb9018d9cf9ab4239359f9744 100644 (file)
@@ -138,7 +138,7 @@ collapse_escapes (char const *strptr)
           continue;
         }
 
-      copy_character:
+      copy_character:;
       mcel_t g = mcel_scanz (s);
       strout = mempcpy (strout, s, g.len);
       s += g.len;