From: Pádraig Brady Date: Tue, 28 Apr 2015 22:07:13 +0000 (+0100) Subject: maint: avoid a new -Werror=return-type warning in yes.c X-Git-Tag: v8.24~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf6837655730c09a42cfd0a23c984e1410370f5;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/yes.c b/src/yes.c index 3b7b4c6219..07885be9b4 100644 --- a/src/yes.c +++ b/src/yes.c @@ -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)