Skip to content

Commit f24a9b7

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4695c3f commit f24a9b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/unit-tests/t-hashmap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ static void t_alloc(struct hashmap *map, unsigned int ignore_case)
322322
free(removed);
323323
}
324324

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)
326327
{
327328
const char *values[] = { "value1", "Value1", "value2", "value2" };
328329

0 commit comments

Comments
 (0)