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:
parent
0cff86990c
commit
7506535775
2
apply.c
2
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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user