Skip to content

Commit 506ebaa

Browse files
peffgitster
authored andcommitted
help: mark unused parameter in git_unknown_cmd_config()
The extra callback parameter became unused in 0918d08 (help.c: fix autocorrect in work tree for bare repository, 2022-10-29), but we can't get rid of it because we must conform to the config callback interface. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a5c76b3 commit 506ebaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

help.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ static struct cmdnames aliases;
540540
#define AUTOCORRECT_NEVER (-2)
541541
#define AUTOCORRECT_IMMEDIATELY (-1)
542542

543-
static int git_unknown_cmd_config(const char *var, const char *value, void *cb)
543+
static int git_unknown_cmd_config(const char *var, const char *value,
544+
void *cb UNUSED)
544545
{
545546
const char *p;
546547

0 commit comments

Comments
 (0)