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>

Jeff King committed Feb 24, 2023 at 01:39 UTC 43090008e365a5dfec5a167b5ab64b1f0c1345a6
1 file changed +2 -1
log-tree.c
+2 -1
@@ -196,7 +196,8 @@ static int add_ref_decoration(const char *refname, const struct object_id *oid,
196 return 0;
197 }
198
199 -static int add_graft_decoration(const struct commit_graft *graft, void *cb_data)
199 +static int add_graft_decoration(const struct commit_graft *graft,
200 + void *cb_data UNUSED)
201 {
202 struct commit *commit = lookup_commit(the_repository, &graft->oid);
203 if (!commit)