aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-08-19 06:08:49 -0400
committerJunio C Hamano <gitster@pobox.com>2022-08-19 12:18:56 -0700
commit555ff1c8a4fc3bf4beab0b5bb8774fd607f95111 (patch)
treeeb3641aac61e98cc6644318b853e67e8d317fcdf /builtin/checkout.c
parenthashmap: mark unused callback parameters (diff)
downloadgit-555ff1c8a4fc3bf4beab0b5bb8774fd607f95111.tar.gz
git-555ff1c8a4fc3bf4beab0b5bb8774fd607f95111.zip
mark unused read_tree_recursive() callback parameters
We pass a callback to read_tree_recursive(), but not every callback needs every parameter. Let's mark the unused ones to satisfy -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 713410ce2c..d18c8c886e 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -125,7 +125,7 @@ static int post_checkout_hook(struct commit *old_commit, struct commit *new_comm
}
static int update_some(const struct object_id *oid, struct strbuf *base,
- const char *pathname, unsigned mode, void *context)
+ const char *pathname, unsigned mode, void *UNUSED(context))
{
int len;
struct cache_entry *ce;