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>
This commit is contained in:
Jeff King
2022-08-19 06:08:49 -04:00
committed by Junio C Hamano
parent 02c3c59e62
commit 555ff1c8a4
7 changed files with 18 additions and 13 deletions

View File

@ -456,7 +456,7 @@ static void unpack_trees_finish(struct merge_options *opt)
clear_unpack_trees_porcelain(&opt->priv->unpack_opts);
}
static int save_files_dirs(const struct object_id *oid,
static int save_files_dirs(const struct object_id *UNUSED(oid),
struct strbuf *base, const char *path,
unsigned int mode, void *context)
{