]> git.ipfire.org Git - thirdparty/git.git/commit
hashmap: mark unused callback parameters
authorJeff King <peff@peff.net>
Fri, 19 Aug 2022 10:08:46 +0000 (06:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 19:18:55 +0000 (12:18 -0700)
commit02c3c59e62a30771d209a171edfc75a4d7387ebe
tree5ba9f5cb29aa1c86d0698b7a6a51f88ccde4ab0d
parent783a86c1427637d71fb2710291e677360ab5dc09
hashmap: mark unused callback parameters

Hashmap comparison functions must conform to a particular callback
interface, but many don't use all of their parameters. Especially the
void cmp_data pointer, but some do not use keydata either (because they
can easily form a full struct to pass when doing lookups). Let's mark
these to make -Wunused-parameter happy.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
29 files changed:
add-interactive.c
attr.c
bloom.c
builtin/describe.c
builtin/difftool.c
builtin/fast-export.c
builtin/fast-import.c
builtin/fetch.c
compat/terminal.c
config.c
diff.c
dir.c
environment.c
hashmap.c
merge-recursive.c
name-hash.c
object-store.h
oidmap.c
packfile.c
patch-ids.c
range-diff.c
ref-filter.c
refs.c
remote.c
revision.c
sequencer.c
strmap.c
sub-process.c
submodule-config.c