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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Dec 13, 2022 at 06:13 UTC
8157ed4046dd58c38c8197b0f1d800c37ca54d61
1 file changed
+1
-1
xdiff/xdiffi.c
+1
-1
@@ -973,7 +973,7 @@ void xdl_free_script(xdchange_t *xscr) {
973
}
974
}
975
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,
977
xdemitconf_t const *xecfg)
978
{
979
xdchange_t *xch, *xche;