mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: avoid a new -Werror=return-type warning in yes.c
* src/yes.c (main): Simplify the logic so that the compiler can see this function always returns a value. This was seen with GCC 5.0 in SINGLE_BINARY mode.
This commit is contained in:
1 parent
09152f2d75
commit
bdf6837655
1 file changed
+1
-1
@@ -115,7 +115,7 @@ main (int argc, char **argv)
|
||||
|
||||
/* If the data doesn't fit in BUFSIZ then output
|
||||
what we've buffered, and iterate over the remaining items. */
|
||||
while (i != argc)
|
||||
while (true /* i != argc */)
|
||||
{
|
||||
int j;
|
||||
if ((pbuf - buf) && fwrite (buf, pbuf - buf, 1, stdout) != 1)
|
||||
|
||||
Reference in new issue
Block a user