diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-04-28 23:07:13 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-04-28 23:07:13 +0100 |
commit | bdf6837655730c09a42cfd0a23c984e1410370f5 (patch) | |
tree | 09f756cc3748b58803e1367439b8907fe6943ca0 /src | |
parent | 09152f2d75d42c4c840d2e5cf25dcb2d7133055b (diff) | |
download | coreutils-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/yes.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |