]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck.minix.c: fix compiler warnings [-Wunused-result]
authorPetr Uzel <petr.uzel@suse.cz>
Tue, 24 Apr 2012 08:20:59 +0000 (10:20 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 27 Apr 2012 10:30:46 +0000 (12:30 +0200)
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>
disk-utils/fsck.minix.c

index 8b3ce62fa1716cbc1511f48d71abda1b2be0e2f8..139ab7ac8bab00e8e8110f531b65ab4e6d436de1 100644 (file)
@@ -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: