diff options
author | Jeff King <peff@peff.net> | 2024-08-17 10:24:47 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-17 18:46:13 +0200 |
commit | f24a9b78a90b333f6857a371be14fd3ee9842add (patch) | |
tree | 03f755eee38b5e279c48569244dd0d07980445f5 /t/unit-tests/t-hashmap.c | |
parent | reftable: mark unused parameters in virtual functions (diff) | |
download | git-f24a9b78a90b333f6857a371be14fd3ee9842add.tar.xz git-f24a9b78a90b333f6857a371be14fd3ee9842add.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | t/unit-tests/t-hashmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/unit-tests/t-hashmap.c b/t/unit-tests/t-hashmap.c index 09a48c2c4e..da102eb541 100644 --- a/t/unit-tests/t-hashmap.c +++ b/t/unit-tests/t-hashmap.c @@ -322,7 +322,8 @@ static void t_alloc(struct hashmap *map, unsigned int ignore_case) free(removed); } -static void t_intern(struct hashmap *map, unsigned int ignore_case) +static void t_intern(struct hashmap *map UNUSED, + unsigned int ignore_case UNUSED) { const char *values[] = { "value1", "Value1", "value2", "value2" }; |