[PATCH] lib: Fix unused parameter warning in lib/error.c

Colin Cross ccross@google.com
Wed Sep 8 18:21:09 GMT 2021


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



More information about the Elfutils-devel mailing list