From: Bernhard Voelker <mail@bernhard-voelker.de>
To: util-linux@vger.kernel.org
Cc: Bernhard Voelker <mail@bernhard-voelker.de>
Subject: [PATCH] findmnt: avoid unused parameter warning
Date: Tue, 2 Jul 2013 16:42:29 +0200 [thread overview]
Message-ID: <1372776149-20214-1-git-send-email-mail@bernhard-voelker.de> (raw)
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
next reply other threads:[~2013-07-02 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 14:42 Bernhard Voelker [this message]
2013-07-03 10:53 ` [PATCH] findmnt: avoid unused parameter warning Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1372776149-20214-1-git-send-email-mail@bernhard-voelker.de \
--to=mail@bernhard-voelker.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox