]> git.ipfire.org Git - thirdparty/git.git/commitdiff
rewrite_parents(): mark unused callback parameter
authorJeff King <peff@peff.net>
Fri, 24 Feb 2023 06:39:37 +0000 (01:39 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2023 17:13:32 +0000 (09:13 -0800)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c

index a7f3e7f6ce43e0ce4786e417608a1a43bac47105..1ab2d75f2988e3f3a154afa6808421720284eaa8 100644 (file)
@@ -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;