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:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user