]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: avoid unused parameter warning
authorKarel Zak <kzak@redhat.com>
Wed, 3 Jul 2013 10:42:06 +0000 (12:42 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Jul 2013 10:42:06 +0000 (12:42 +0200)
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.c

index 85d8b6392ecbf6c7afbee9c53d92b352f4b85b9b..8ccceda96bbc0ad80c42f86146ec151d130faed0 100644 (file)
@@ -417,7 +417,11 @@ static char *get_tag_from_udev(const char *devname, int col)
 #endif /* HAVE_LIBUDEV */
 
 /* Returns LABEL or UUID */
-static const char *get_tag(struct libmnt_fs *fs, const char *tagname, int col)
+static const char *get_tag(struct libmnt_fs *fs, const char *tagname, int col
+#ifndef HAVE_LIBUDEV
+               __attribute__((__unused__))
+#endif
+               )
 {
        const char *t, *v, *res = NULL;