summaryrefslogtreecommitdiff
path: root/builtin/gc.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-18 01:05:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-10-18 04:24:04 (GMT)
commit1ee347104576c8a2681edd79ed8328791f0677d2 (patch)
tree550d2854f0b1e0467f435d12cdf6d0d3423cdf93 /builtin/gc.c
parent9eb6cdadd155f93ff25c674050f218d3f21a5e82 (diff)
downloadgit-1ee347104576c8a2681edd79ed8328791f0677d2.zip
git-1ee347104576c8a2681edd79ed8328791f0677d2.tar.gz
git-1ee347104576c8a2681edd79ed8328791f0677d2.tar.bz2
string-list: mark unused callback parameters
String-lists may be used with callbacks for clearing or iteration. These callbacks need to conform to a particular interface, even though not every callback needs all of its parameters. Mark the unused ones to make -Wunused-parameter happy. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/gc.c')
-rw-r--r--builtin/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/gc.c b/builtin/gc.c
index 2753bd1..044fd66 100644
--- a/builtin/gc.c
+++ b/builtin/gc.c
@@ -329,7 +329,7 @@ static uint64_t estimate_repack_memory(struct packed_git *pack)
return os_cache + heap;
}
-static int keep_one_pack(struct string_list_item *item, void *data)
+static int keep_one_pack(struct string_list_item *item, void *data UNUSED)
{
strvec_pushf(&repack, "--keep-pack=%s", basename(item->string));
return 0;