From: Colin Cross <ccross@google.com>
To: elfutils-devel@sourceware.org
Cc: Colin Cross <ccross@google.com>
Subject: [PATCH] lib: Fix unused parameter warning in lib/error.c
Date: Wed, 8 Sep 2021 11:21:09 -0700 [thread overview]
Message-ID: <20210908182109.2150134-1-ccross@google.com> (raw)
Mark the errnum parameter with __attribute__((unused)).
Signed-off-by: Colin Cross <ccross@google.com>
---
lib/error.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/error.c b/lib/error.c
index 75e964fd..651a0f3d 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -35,7 +35,7 @@
unsigned int error_message_count = 0;
-void error(int status, int errnum, const char *format, ...) {
+void error(int status, int errnum __attribute__ ((unused)), const char *format, ...) {
va_list argp;
va_start(argp, format);
--
2.33.0.153.gba50c8fa24-goog
next reply other threads:[~2021-09-08 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-08 18:21 Colin Cross [this message]
2021-09-09 10:09 ` Mark Wielaard
2021-09-10 18:07 ` [PATCH] lib: Make error.c more like error(3) Colin Cross
2021-09-12 21:00 ` Mark Wielaard
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=20210908182109.2150134-1-ccross@google.com \
--to=ccross@google.com \
--cc=elfutils-devel@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).