mirror of
https://git.zx2c4.com/cgit
synced 2024-11-25 18:08:41 +00:00
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:
parent
a11b435a5d
commit
aa381b3a71
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user