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>
This commit is contained in:
Jeff King 2022-10-17 21:08:51 -04:00 committed by Junio C Hamano
parent 0cff86990c
commit 7506535775

View File

@ -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 */
}