From: Jeff King Date: Tue, 18 Oct 2022 01:08:51 GMT Subject: [PATCH 09/12] apply: mark unused parameters in noop error/warning routine Message-ID: In-Reply-To: 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 --- apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ } -- 2.38.0.371.g300879f34e