]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fetch-pack: mark unused parameter in callback function
authorJeff King <peff@peff.net>
Fri, 24 Feb 2023 06:39:35 +0000 (01:39 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2023 17:13:32 +0000 (09:13 -0800)
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>
fetch-pack.c

index 04016d1e3250f28ae6cd53a784913f02879769d8..67a7786865f305c44c43c10c4e57cc79cfd10373 100644 (file)
@@ -722,7 +722,7 @@ static void filter_refs(struct fetch_pack_args *args,
        *refs = newlist;
 }
 
-static void mark_alternate_complete(struct fetch_negotiator *unused,
+static void mark_alternate_complete(struct fetch_negotiator *negotiator UNUSED,
                                    struct object *obj)
 {
        mark_complete(&obj->oid);