From: Jeff King Date: Tue, 29 Aug 2023 23:45:31 +0000 (-0400) Subject: worktree: mark unused parameters in noop repair callback X-Git-Tag: v2.43.0-rc0~106^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b0e46f563c21429e45f7c57a22b1337b039a3f9;p=thirdparty%2Fgit.git worktree: mark unused parameters in noop repair callback The noop repair callback unsurprisingly does not look at any of its parameters. Mark them as unused to silence -Wunused-parameter. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/worktree.c b/worktree.c index b8cf29e6a1..a56a6c2a3d 100644 --- a/worktree.c +++ b/worktree.c @@ -581,8 +581,10 @@ static void repair_gitfile(struct worktree *wt, strbuf_release(&dotgit); } -static void repair_noop(int iserr, const char *path, const char *msg, - void *cb_data) +static void repair_noop(int iserr UNUSED, + const char *path UNUSED, + const char *msg UNUSED, + void *cb_data UNUSED) { /* nothing */ }