diff options
author | Karel Zak | 2013-07-03 12:42:06 +0200 |
---|---|---|
committer | Karel Zak | 2013-07-03 12:42:06 +0200 |
commit | 81499ab24e15532a8252c1e527d3301d9309c31e (patch) | |
tree | 13b196927b15c448a784396c79ee4928ae056343 /misc-utils | |
parent | tests: update libmount fstab full parse test (diff) | |
download | kernel-qcow2-util-linux-81499ab24e15532a8252c1e527d3301d9309c31e.tar.gz kernel-qcow2-util-linux-81499ab24e15532a8252c1e527d3301d9309c31e.tar.xz kernel-qcow2-util-linux-81499ab24e15532a8252c1e527d3301d9309c31e.zip |
findmnt: avoid unused parameter warning
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/findmnt.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |