diff options
author | Petr Uzel | 2012-04-24 10:20:59 +0200 |
---|---|---|
committer | Karel Zak | 2012-04-27 12:30:46 +0200 |
commit | 28d4cdcb9d3923c0fb60b0f184e4955222319f4b (patch) | |
tree | 81532da5b12985f5f54b629011c0de4361a49ff5 /disk-utils | |
parent | libuuid: fix typo in uuid_compare manpage (diff) | |
download | kernel-qcow2-util-linux-28d4cdcb9d3923c0fb60b0f184e4955222319f4b.tar.gz kernel-qcow2-util-linux-28d4cdcb9d3923c0fb60b0f184e4955222319f4b.tar.xz kernel-qcow2-util-linux-28d4cdcb9d3923c0fb60b0f184e4955222319f4b.zip |
fsck.minix.c: fix compiler warnings [-Wunused-result]
fsck.minix.c: In function ‘ask’:
fsck.minix.c:263:7: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Werror=unused-result]
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/fsck.minix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c index 8b3ce62fa..139ab7ac8 100644 --- a/disk-utils/fsck.minix.c +++ b/disk-utils/fsck.minix.c @@ -260,7 +260,7 @@ ask(const char *string, int def) { * translated. */ printf(def ? _("%s (y/n)? ") : _("%s (n/y)? "), string); fflush(stdout); - fgets(input, YESNO_LENGTH, stdin); + ignore_result( fgets(input, YESNO_LENGTH, stdin) ); resp = rpmatch(input); switch (resp) { case -1: |