Skip to content

Commit c764e28

Browse files
peffgitster
authored andcommitted
rewrite_parents(): mark unused callback parameter
The rewrite_parents() function takes a callback, but not every callback needs the "rev" parameter. Mark the unused one so -Wunused-parameter will be happy. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 65daa9b commit c764e28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

line-log.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,8 @@ int line_log_process_ranges_arbitrary_commit(struct rev_info *rev, struct commit
12811281
return changed;
12821282
}
12831283

1284-
static enum rewrite_result line_log_rewrite_one(struct rev_info *rev, struct commit **pp)
1284+
static enum rewrite_result line_log_rewrite_one(struct rev_info *rev UNUSED,
1285+
struct commit **pp)
12851286
{
12861287
for (;;) {
12871288
struct commit *p = *pp;

0 commit comments

Comments
 (0)