From: Jeff King Date: Mon, 3 Jul 2023 06:44:13 +0000 (-0400) Subject: count-objects: mark unused parameter in alternates callback X-Git-Tag: v2.42.0-rc0~35^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=506d35f13da352975688b078e89cb978d44bf39c;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/count-objects.c b/builtin/count-objects.c index 97cdfb0ac5..2d4bb5e8d0 100644 --- a/builtin/count-objects.c +++ b/builtin/count-objects.c @@ -82,7 +82,7 @@ static int count_cruft(const char *basename UNUSED, const char *path, return 0; } -static int print_alternate(struct object_directory *odb, void *data) +static int print_alternate(struct object_directory *odb, void *data UNUSED) { printf("alternate: "); quote_c_style(odb->path, NULL, stdout, 0);