public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] lib: Fix unused parameter warning in lib/error.c
@ 2021-09-08 18:21 Colin Cross
  2021-09-09 10:09 ` Mark Wielaard
  0 siblings, 1 reply; 4+ messages in thread
From: Colin Cross @ 2021-09-08 18:21 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Colin Cross

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


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

end of thread, other threads:[~2021-09-12 21:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08 18:21 [PATCH] lib: Fix unused parameter warning in lib/error.c Colin Cross
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

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).