t-hashmap: mark unused parameters in callback function

The t_intern() setup function doesn't operate on a hashmap, so it ignores its parameters. But we can't drop them since it is passed as a pointer to setup(), so we have to match the other setup functions. Mark them to silence -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Aug 17, 2024 at 04:24 UTC f24a9b78a90b333f6857a371be14fd3ee9842add
1 file changed +2 -1
t/unit-tests/t-hashmap.c
+2 -1
@@ -322,7 +322,8 @@ static void t_alloc(struct hashmap *map, unsigned int ignore_case)
322 free(removed);
323 }
324
325 -static void t_intern(struct hashmap *map, unsigned int ignore_case)
325 +static void t_intern(struct hashmap *map UNUSED,
326 + unsigned int ignore_case UNUSED)
327 {
328 const char *values[] = { "value1", "Value1", "value2", "value2" };
329