From 1ee347104576c8a2681edd79ed8328791f0677d2 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 17 Oct 2022 21:05:32 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- t/helper/test-path-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't/helper/test-path-utils.c') diff --git a/t/helper/test-path-utils.c b/t/helper/test-path-utils.c index d20e1b7a18..f69709d674 100644 --- a/t/helper/test-path-utils.c +++ b/t/helper/test-path-utils.c @@ -8,7 +8,8 @@ * GIT_CEILING_DIRECTORIES. If the path is unusable for some reason, * die with an explanation. */ -static int normalize_ceiling_entry(struct string_list_item *item, void *unused) +static int normalize_ceiling_entry(struct string_list_item *item, + void *data UNUSED) { char *ceil = item->string; -- cgit v1.2.3