]> git.ipfire.org Git - thirdparty/git.git/commitdiff
apply: mark unused parameters in noop error/warning routine
authorJeff King <peff@peff.net>
Tue, 18 Oct 2022 01:08:51 +0000 (21:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2022 04:24:04 +0000 (21:24 -0700)
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>
apply.c

diff --git a/apply.c b/apply.c
index fa9a02771cea6be7d93c14e707efae101bab2c62..6b4dbe0c88d5771dae0aa51b8eceae5a698049c7 100644 (file)
--- 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 */
 }