public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] findmnt: avoid unused parameter warning
@ 2013-07-02 14:42 Bernhard Voelker
  2013-07-03 10:53 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Voelker @ 2013-07-02 14:42 UTC (permalink / raw)
  To: util-linux; +Cc: Bernhard Voelker

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-03 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02 14:42 [PATCH] findmnt: avoid unused parameter warning Bernhard Voelker
2013-07-03 10:53 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox