fetch-pack: mark unused parameter in callback function

The for_each_cached_alternate() interface requires a callback that takes a negotiator parameter, but not all implementations need it. Mark the unused one as such to appease -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Feb 24, 2023 at 01:39 UTC 65daa9ba1c86052d7a889a407b95c3ffa61be47b
1 file changed +1 -1
fetch-pack.c
+1 -1
@@ -722,7 +722,7 @@ static void filter_refs(struct fetch_pack_args *args,
722 *refs = newlist;
723 }
724
725 -static void mark_alternate_complete(struct fetch_negotiator *unused,
725 +static void mark_alternate_complete(struct fetch_negotiator *negotiator UNUSED,
726 struct object *obj)
727 {
728 mark_complete(&obj->oid);