apply: mark unused parameters in noop error/warning routine

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> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Oct 17, 2022 at 21:08 UTC 7506535775186a9223293e09948d253d7c9d8483
1 file changed +1 -1
apply.c
+1 -1
@@ -125,7 +125,7 @@ void clear_apply_state(struct apply_state *state)
125 /* &state->fn_table is cleared at the end of apply_patch() */
126 }
127
128 -static void mute_routine(const char *msg, va_list params)
128 +static void mute_routine(const char *msg UNUSED, va_list params UNUSED)
129 {
130 /* do nothing */
131 }