Message ID | Y/hbqRGwWa0NPTI1@coredump.intra.peff.net (mailing list archive) |
---|---|
State | Accepted |
Commit | c764e2806013e65c1ebee4b82afe3da1b55d3e51 |
Headers | show |
Series | more -Wunused-parameter fixes | expand |
diff --git a/line-log.c b/line-log.c index a7f3e7f6ce..1ab2d75f29 100644 --- a/line-log.c +++ b/line-log.c @@ -1281,7 +1281,8 @@ int line_log_process_ranges_arbitrary_commit(struct rev_info *rev, struct commit return changed; } -static enum rewrite_result line_log_rewrite_one(struct rev_info *rev, struct commit **pp) +static enum rewrite_result line_log_rewrite_one(struct rev_info *rev UNUSED, + struct commit **pp) { for (;;) { struct commit *p = *pp;
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 <peff@peff.net> --- line-log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)