]> git.ipfire.org Git - thirdparty/git.git/commitdiff
worktree: mark unused parameters in noop repair callback
authorJeff King <peff@peff.net>
Tue, 29 Aug 2023 23:45:31 +0000 (19:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Aug 2023 00:56:25 +0000 (17:56 -0700)
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
worktree.c

index b8cf29e6a1587f5cbb2440a83ef5349fe49d0f48..a56a6c2a3d136d31019520fdae68fc46c428194d 100644 (file)
@@ -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 */
 }