diff options
| author | Jeff King <peff@peff.net> | 2022-08-19 06:08:49 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-08-19 12:18:56 -0700 |
| commit | 555ff1c8a4fc3bf4beab0b5bb8774fd607f95111 (patch) | |
| tree | eb3641aac61e98cc6644318b853e67e8d317fcdf /builtin/log.c | |
| parent | 02c3c59e62a30771d209a171edfc75a4d7387ebe (diff) | |
| download | git-555ff1c8a4fc3bf4beab0b5bb8774fd607f95111.tar.gz | |
mark unused read_tree_recursive() callback parameters
We pass a callback to read_tree_recursive(), but not every callback
needs every parameter. Let's mark the unused ones to satisfy
-Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/log.c')
| -rw-r--r-- | builtin/log.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin/log.c b/builtin/log.c index 9b937d59b8..79a2e4d0bb 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -645,9 +645,10 @@ static int show_tag_object(const struct object_id *oid, struct rev_info *rev) return 0; } -static int show_tree_object(const struct object_id *oid, - struct strbuf *base, - const char *pathname, unsigned mode, void *context) +static int show_tree_object(const struct object_id *UNUSED(oid), + struct strbuf *UNUSED(base), + const char *pathname, unsigned mode, + void *context) { FILE *file = context; fprintf(file, "%s%s\n", pathname, S_ISDIR(mode) ? "/" : ""); |
