summaryrefslogtreecommitdiff
path: root/archive-zip.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-08-19 10:08:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-08-19 19:18:56 (GMT)
commit555ff1c8a4fc3bf4beab0b5bb8774fd607f95111 (patch)
treeeb3641aac61e98cc6644318b853e67e8d317fcdf /archive-zip.c
parent02c3c59e62a30771d209a171edfc75a4d7387ebe (diff)
downloadgit-555ff1c8a4fc3bf4beab0b5bb8774fd607f95111.zip
git-555ff1c8a4fc3bf4beab0b5bb8774fd607f95111.tar.gz
git-555ff1c8a4fc3bf4beab0b5bb8774fd607f95111.tar.bz2
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 'archive-zip.c')
-rw-r--r--archive-zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive-zip.c b/archive-zip.c
index 854bceb..d63782d 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -618,7 +618,7 @@ static int archive_zip_config(const char *var, const char *value,
return userdiff_config(var, value);
}
-static int write_zip_archive(const struct archiver *ar,
+static int write_zip_archive(const struct archiver *UNUSED(ar),
struct archiver_args *args)
{
int err;