diff options
author | Jeff King <peff@peff.net> | 2022-10-17 21:08:51 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-17 21:24:04 -0700 |
commit | 7506535775186a9223293e09948d253d7c9d8483 (patch) | |
tree | 2f60bfa506e2776bb5c829369a6858e12662e264 /apply.c | |
parent | 0cff86990cbae9d5c8ca78cd09cb58f74828979b (diff) | |
download | git-7506535775186a9223293e09948d253d7c9d8483.tar.gz |
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>
Diffstat (limited to 'apply.c')
-rw-r--r-- | apply.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ } |