Skip to content

Commit 65daa9b

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3c50c88 commit 65daa9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fetch-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ static void filter_refs(struct fetch_pack_args *args,
722722
*refs = newlist;
723723
}
724724

725-
static void mark_alternate_complete(struct fetch_negotiator *unused,
725+
static void mark_alternate_complete(struct fetch_negotiator *negotiator UNUSED,
726726
struct object *obj)
727727
{
728728
mark_complete(&obj->oid);

0 commit comments

Comments
 (0)