]> git.ipfire.org Git - thirdparty/git.git/commitdiff
worktree: mark unused parameters in each_ref_fn callback
authorJeff King <peff@peff.net>
Tue, 29 Aug 2023 23:45:15 +0000 (19:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Aug 2023 00:56:24 +0000 (17:56 -0700)
This is similar to the cases in 63e14ee2d6 (refs: mark unused
each_ref_fn parameters, 2022-08-19), but it was added after that commit.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c

index 10db70b7ec910753278a8506c92ae3573ec5c216..62b7e26f4bdb17f524914ab6e60143915d8f2565 100644 (file)
@@ -628,10 +628,10 @@ static void print_preparing_worktree_line(int detach,
  *
  * Returns 0 on failure and non-zero on success.
  */
-static int first_valid_ref(const char *refname,
-                          const struct object_id *oid,
-                          int flags,
-                          void *cb_data)
+static int first_valid_ref(const char *refname UNUSED,
+                          const struct object_id *oid UNUSED,
+                          int flags UNUSED,
+                          void *cb_data UNUSED)
 {
        return 1;
 }