From 02c3c59e62a30771d209a171edfc75a4d7387ebe Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 19 Aug 2022 06:08:46 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- environment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'environment.c') diff --git a/environment.c b/environment.c index b3296ce7d1..a0ceb6d655 100644 --- a/environment.c +++ b/environment.c @@ -333,10 +333,10 @@ static void set_git_dir_1(const char *path) setup_git_env(path); } -static void update_relative_gitdir(const char *name, +static void update_relative_gitdir(const char *UNUSED(name), const char *old_cwd, const char *new_cwd, - void *data) + void *UNUSED(data)) { char *path = reparent_relative_path(old_cwd, new_cwd, get_git_dir()); struct tmp_objdir *tmp_objdir = tmp_objdir_unapply_primary_odb(); -- cgit v1.2.3