Skip to content

Commit 4309000

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

log-tree.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ static int add_ref_decoration(const char *refname, const struct object_id *oid,
196196
return 0;
197197
}
198198

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)
200201
{
201202
struct commit *commit = lookup_commit(the_repository, &graft->oid);
202203
if (!commit)

0 commit comments

Comments
 (0)