From: Karel Zak Date: Wed, 3 Jul 2013 10:42:06 +0000 (+0200) Subject: findmnt: avoid unused parameter warning X-Git-Tag: v2.23.2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9326be24a7841a8be8e3074041bf59157797bc24;p=thirdparty%2Futil-linux.git findmnt: avoid unused parameter warning Reported-by: Bernhard Voelker Signed-off-by: Karel Zak --- diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index 3bc399e3dc..5d52807225 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -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;