diff mbox series

[09/12] apply: mark unused parameters in noop error/warning routine

Message ID Y038o3i6gt4retMQ@coredump.intra.peff.net (mailing list archive)
State Accepted
Commit 7506535775186a9223293e09948d253d7c9d8483
Headers show
Series more unused-parameter fixes / annotations | expand

Commit Message

Jeff King Oct. 18, 2022, 1:08 a.m. UTC
We squelch error/warning output by passing a noop handler to
set_error_routine(). We need to tell the compiler that this is intended
so that it doesn't trigger -Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
---
 apply.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/apply.c b/apply.c
index fa9a02771c..6b4dbe0c88 100644
--- a/apply.c
+++ b/apply.c
@@ -125,7 +125,7 @@  void clear_apply_state(struct apply_state *state)
 	/* &state->fn_table is cleared at the end of apply_patch() */
 }
 
-static void mute_routine(const char *msg, va_list params)
+static void mute_routine(const char *msg UNUSED, va_list params UNUSED)
 {
 	/* do nothing */
 }