Skip to content

Commit 7506535

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0cff869 commit 7506535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void clear_apply_state(struct apply_state *state)
125125
/* &state->fn_table is cleared at the end of apply_patch() */
126126
}
127127

128-
static void mute_routine(const char *msg, va_list params)
128+
static void mute_routine(const char *msg UNUSED, va_list params UNUSED)
129129
{
130130
/* do nothing */
131131
}

0 commit comments

Comments
 (0)