]> git.ipfire.org Git - thirdparty/git.git/commit
t-hashmap: mark unused parameters in callback function
authorJeff King <peff@peff.net>
Sat, 17 Aug 2024 08:24:47 +0000 (04:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 16:46:13 +0000 (09:46 -0700)
commitf24a9b78a90b333f6857a371be14fd3ee9842add
tree03f755eee38b5e279c48569244dd0d07980445f5
parent4695c3f3a9a4d6d9785ae9c40ed105302ce08a1e
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>
t/unit-tests/t-hashmap.c