summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-04-28 23:07:13 +0100
committerPádraig Brady <P@draigBrady.com>2015-04-28 23:07:13 +0100
commitbdf6837655730c09a42cfd0a23c984e1410370f5 (patch)
tree09f756cc3748b58803e1367439b8907fe6943ca0
parent09152f2d75d42c4c840d2e5cf25dcb2d7133055b (diff)
downloadcoreutils-bdf6837655730c09a42cfd0a23c984e1410370f5.tar.xz
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.
-rw-r--r--src/yes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yes.c b/src/yes.c
index 3b7b4c621..07885be9b 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)