Skip to content

Commit 8157ed4

Browse files
peffgitster
authored andcommitted
xdiff: mark unused parameter in xdl_call_hunk_func()
This function is used interchangeably with xdl_emit via a function pointer, so we can't just drop the unused parameter. Mark it to silence -Wunused-parameter. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a361660 commit 8157ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdiff/xdiffi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ void xdl_free_script(xdchange_t *xscr) {
973973
}
974974
}
975975

976-
static int xdl_call_hunk_func(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
976+
static int xdl_call_hunk_func(xdfenv_t *xe UNUSED, xdchange_t *xscr, xdemitcb_t *ecb,
977977
xdemitconf_t const *xecfg)
978978
{
979979
xdchange_t *xch, *xche;

0 commit comments

Comments
 (0)