scan-tree: fix error caused by missing parameter name

This fixes an error which was introduced by
2f50b47c72. 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.
This commit is contained in:
Kian Kasad 2024-08-04 11:43:57 -07:00 committed by Christian Hesse
parent a11b435a5d
commit aa381b3a71

View File

@ -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;