From: Petr Uzel Date: Tue, 24 Apr 2012 08:20:59 +0000 (+0200) Subject: fsck.minix.c: fix compiler warnings [-Wunused-result] X-Git-Tag: v2.22-rc1~468 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28d4cdcb9d3923c0fb60b0f184e4955222319f4b;p=thirdparty%2Futil-linux.git 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 --- diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c index 8b3ce62fa1..139ab7ac8b 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: