From 81499ab24e15532a8252c1e527d3301d9309c31e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 3 Jul 2013 12:42:06 +0200 Subject: findmnt: avoid unused parameter warning Reported-by: Bernhard Voelker Signed-off-by: Karel Zak --- misc-utils/findmnt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'misc-utils') diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index 85d8b6392..8ccceda96 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; -- cgit v1.2.3-55-g7522