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>

Jeff King committed Jul 3, 2023 at 02:44 UTC 1e9cb3487ad21a4ac78a613abc04a131c8950633
2 files changed +2 -2
t/helper/test-dump-split-index.c
+1 -1
@@ -7,7 +7,7 @@
7 #include "split-index.h"
8 #include "ewah/ewok.h"
9
10 -static void show_bit(size_t pos, void *data)
10 +static void show_bit(size_t pos, void *data UNUSED)
11 {
12 printf(" %d", (int)pos);
13 }
t/helper/test-oid-array.c
+1 -1
@@ -4,7 +4,7 @@
4 #include "setup.h"
5 #include "strbuf.h"
6
7 -static int print_oid(const struct object_id *oid, void *data)
7 +static int print_oid(const struct object_id *oid, void *data UNUSED)
8 {
9 puts(oid_to_hex(oid));
10 return 0;