worktree: mark unused parameters in each_ref_fn callback

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>

Jeff King committed Aug 29, 2023 at 19:45 UTC bbfc4f53b9622ba996c1cd083eaa6cb10d84f6d0
1 file changed +4 -4
builtin/worktree.c
+4 -4
@@ -628,10 +628,10 @@ static void print_preparing_worktree_line(int detach,
628 *
629 * Returns 0 on failure and non-zero on success.
630 */
631 -static int first_valid_ref(const char *refname,
632 - const struct object_id *oid,
633 - int flags,
634 - void *cb_data)
631 +static int first_valid_ref(const char *refname UNUSED,
632 + const struct object_id *oid UNUSED,
633 + int flags UNUSED,
634 + void *cb_data UNUSED)
635 {
636 return 1;
637 }