1
0
mirror of https://github.com/git/git.git synced 2024-11-15 15:03:47 +01:00

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>
This commit is contained in:
Jeff King 2023-02-24 01:39:35 -05:00 committed by Junio C Hamano
parent 3c50c88f42
commit 65daa9ba1c

@ -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);