From: Jeff King Date: Tue, 18 Oct 2022 01:08:51 +0000 (-0400) Subject: apply: mark unused parameters in noop error/warning routine X-Git-Tag: v2.39.0-rc0~80^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7506535775186a9223293e09948d253d7c9d8483;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- 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 */ }