count-objects: mark unused parameter in alternates callback

Callbacks to for_each_altodb() get a void data pointer, but we don't need it here. Mark it as unused to silence -Wunused-parameter. 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 506d35f13da352975688b078e89cb978d44bf39c
1 file changed +1 -1
builtin/count-objects.c
+1 -1
@@ -82,7 +82,7 @@ static int count_cruft(const char *basename UNUSED, const char *path,
82 return 0;
83 }
84
85 -static int print_alternate(struct object_directory *odb, void *data)
85 +static int print_alternate(struct object_directory *odb, void *data UNUSED)
86 {
87 printf("alternate: ");
88 quote_c_style(odb->path, NULL, stdout, 0);