for_each_commit_graft(): mark unused callback parameter
The for_each_commit_graft() functions takes a callback, but not every callback uses the void data parameter. Mark the unused one to appease the -Wunused-parameter warning. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
c764e28060
commit
43090008e3
@ -196,7 +196,8 @@ static int add_ref_decoration(const char *refname, const struct object_id *oid,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int add_graft_decoration(const struct commit_graft *graft, void *cb_data)
|
||||
static int add_graft_decoration(const struct commit_graft *graft,
|
||||
void *cb_data UNUSED)
|
||||
{
|
||||
struct commit *commit = lookup_commit(the_repository, &graft->oid);
|
||||
if (!commit)
|
||||
|
Loading…
Reference in New Issue
Block a user