[PATCH] findmnt: avoid unused parameter warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
---
 misc-utils/findmnt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c
index 85d8b63..e78362a 100644
--- a/misc-utils/findmnt.c
+++ b/misc-utils/findmnt.c
@@ -431,6 +431,8 @@ static const char *get_tag(struct libmnt_fs *fs, const char *tagname, int col)
 #ifdef HAVE_LIBUDEV
 		if (dev)
 			res = get_tag_from_udev(dev, col);
+#else
+    (void) col; /* avoid unused parameter warning */
 #endif
 		if (!res)
 			res = mnt_cache_find_tag_value(cache, dev, tagname);
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux