]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fold: fix build failure with C99
authorPádraig Brady <P@draigBrady.com>
Wed, 27 Aug 2025 10:48:13 +0000 (11:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Aug 2025 10:50:01 +0000 (11:50 +0100)
GCC 10.2 gave the following error:
"error: label at end of compound statement"

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

src/fold.c

index 208b004d627013f75d3febd720d0dccf57de4ef3..343ee62c30c89e7a21ae0f2552cd4ea999ab78ed 100644 (file)
@@ -260,7 +260,8 @@ fold_file (char const *filename, size_t width)
         break;
       /* We read a full buffer of complete characters.  */
       offset_in = 0;
-    next_line:
+
+    next_line:;
     }
 
   saved_errno = errno;