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@xxxxxxx> --- 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 8b3ce62..139ab7a 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: -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html