aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKian Kasad <kian@kasad.com>2024-08-04 11:43:57 -0700
committerChristian Hesse <mail@eworm.de>2025-08-25 10:52:28 +0200
commit28404bef7eb29eeda71ec642218e961bbf57763a (patch)
treeccb0f449dca1a73c1c596d3f59976b76fb7d28a7
parent2745c7d777bab851451c0c25748e359a8d8f6463 (diff)
downloadcgit-28404bef7eb29eeda71ec642218e961bbf57763a.tar.gz
cgit-28404bef7eb29eeda71ec642218e961bbf57763a.tar.bz2
cgit-28404bef7eb29eeda71ec642218e961bbf57763a.tar.xz
scan-tree: fix error caused by missing parameter name
This fixes an error which was introduced by 2f50b47c72cbc4270bbd12ae7f520486d5f42736. Git 2.42.0 added a new argument to config_fn_t, and it was added to gitconfig_config(), but not named. This causes compile warnings/errors. This commit fixes that by naming the new parameter, and marking it unused. Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--scan-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scan-tree.c b/scan-tree.c
index 84da86e..8858b74 100644
--- a/scan-tree.c
+++ b/scan-tree.c
@@ -54,7 +54,8 @@ static void scan_tree_repo_config(const char *name, const char *value)
config_fn(repo, name, value);
}
-static int gitconfig_config(const char *key, const char *value, const struct config_context *, void *cb)
+static int gitconfig_config(const char *key, const char *value,
+ const __attribute__((unused)) struct config_context *ctx, void *cb)
{
const char *name;