aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-oid-array.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-07-03 02:44:36 -0400
committerJunio C Hamano <gitster@pobox.com>2023-07-13 17:24:00 -0700
commit1e9cb3487ad21a4ac78a613abc04a131c8950633 (patch)
treed7927ffc7f2f4c573c6446a5eeefa05c0825e828 /t/helper/test-oid-array.c
parentcc2f810172a09f8c451594b3662c010830b37903 (diff)
downloadgit-1e9cb3487ad21a4ac78a613abc04a131c8950633.tar.gz
t/helper: mark unused callback void data parameters
Many callback interfaces have an extra void data parameter, but we don't always need it (especially for dumping functions like the ones in test helpers). Mark them as unused to avoid -Wunused-parameter warnings. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-oid-array.c')
-rw-r--r--t/helper/test-oid-array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-oid-array.c b/t/helper/test-oid-array.c
index eef68833b7..aafe398ef0 100644
--- a/t/helper/test-oid-array.c
+++ b/t/helper/test-oid-array.c
@@ -4,7 +4,7 @@
#include "setup.h"
#include "strbuf.h"
-static int print_oid(const struct object_id *oid, void *data)
+static int print_oid(const struct object_id *oid, void *data UNUSED)
{
puts(oid_to_hex(oid));
return 0;