]> git.ipfire.org Git - thirdparty/git.git/commitdiff
help: mark unused parameter in git_unknown_cmd_config()
authorJeff King <peff@peff.net>
Fri, 24 Feb 2023 06:39:48 +0000 (01:39 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2023 17:13:33 +0000 (09:13 -0800)
The extra callback parameter became unused in 0918d08887 (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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c

diff --git a/help.c b/help.c
index 812af4cdea62129c12ec33813d934d677c61d714..8393c255867b2ba50a3716bd214a953aff41a4e6 100644 (file)
--- a/help.c
+++ b/help.c
@@ -540,7 +540,8 @@ static struct cmdnames aliases;
 #define AUTOCORRECT_NEVER (-2)
 #define AUTOCORRECT_IMMEDIATELY (-1)
 
-static int git_unknown_cmd_config(const char *var, const char *value, void *cb)
+static int git_unknown_cmd_config(const char *var, const char *value,
+                                 void *cb UNUSED)
 {
        const char *p;