* [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
* Re: [PATCH] findmnt: avoid unused parameter warning
2013-07-02 14:42 [PATCH] findmnt: avoid unused parameter warning Bernhard Voelker
@ 2013-07-03 10:53 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2013-07-03 10:53 UTC (permalink / raw)
To: Bernhard Voelker; +Cc: util-linux
On Tue, Jul 02, 2013 at 04:42:29PM +0200, Bernhard Voelker wrote:
> misc-utils/findmnt.c | 2 ++
> 1 file changed, 2 insertions(+)
Fixed, I have added __attribute__((__unused__)).
Thanks!
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.