From 555ff1c8a4fc3bf4beab0b5bb8774fd607f95111 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 19 Aug 2022 06:08:49 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- archive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archive.c') diff --git a/archive.c b/archive.c index d5109abb89..8b165e935b 100644 --- a/archive.c +++ b/archive.c @@ -382,7 +382,8 @@ struct path_exists_context { struct archiver_args *args; }; -static int reject_entry(const struct object_id *oid, struct strbuf *base, +static int reject_entry(const struct object_id *UNUSED(oid), + struct strbuf *base, const char *filename, unsigned mode, void *context) { -- cgit v1.3