From patchwork Wed Sep 8 18:21:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Cross X-Patchwork-Id: 45869 From: ccross@google.com (Colin Cross) Date: Wed, 8 Sep 2021 11:21:09 -0700 Subject: [PATCH] lib: Fix unused parameter warning in lib/error.c Message-ID: <20210908182109.2150134-1-ccross@google.com> Mark the errnum parameter with __attribute__((unused)). Signed-off-by: Colin Cross --- 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);