From 28d4cdcb9d3923c0fb60b0f184e4955222319f4b Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Tue, 24 Apr 2012 10:20:59 +0200 Subject: [PATCH] fsck.minix.c: fix compiler warnings [-Wunused-result] MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- disk-utils/fsck.minix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3