]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: fix compiler warnings [-Wunused-parameter]
authorKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 10:44:20 +0000 (12:44 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 10:44:20 +0000 (12:44 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.c

index 4d00291868d6142a3f21d7905b732ca819f82c13..7e6a8f53914f0c8fce26be50926e516f5b322ff3 100644 (file)
@@ -481,7 +481,8 @@ leave:
 }
 
 /* error callback */
-static int parser_errcb(struct libmnt_table *tb, const char *filename, int line)
+static int parser_errcb(struct libmnt_table *tb __attribute__ ((__unused__)),
+                       const char *filename, int line)
 {
        warn(_("%s: parse error at line %d"), filename, line);
        return 0;
@@ -516,7 +517,8 @@ static struct libmnt_table *parse_tabfile(const char *path)
 }
 
 /* filter function for libmount (mnt_table_find_next_fs()) */
-static int match_func(struct libmnt_fs *fs, void *data)
+static int match_func(struct libmnt_fs *fs,
+                     void *data __attribute__ ((__unused__)))
 {
        int rc = flags & FL_INVERT ? 1 : 0;
        const char *m;