From: Jeff King Date: Sat, 17 Aug 2024 08:25:42 +0000 (-0400) Subject: scalar: mark unused parameters in dummy function X-Git-Tag: v2.47.0-rc0~94^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e75e503c4f7eea2e634e5930d164ad79071ad82;p=thirdparty%2Fgit.git scalar: mark unused parameters in dummy function We have a dummy load_builtin_commands() function to satisfy the linker, but which we never expect to be called. Mark its parameters to avoid complaints from -Wunused-parameter. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/scalar.c b/scalar.c index 1fe8a93e65..6166a8dd4c 100644 --- a/scalar.c +++ b/scalar.c @@ -400,7 +400,8 @@ static int delete_enlistment(struct strbuf *enlistment) * Dummy implementation; Using `get_version_info()` would cause a link error * without this. */ -void load_builtin_commands(const char *prefix, struct cmdnames *cmds) +void load_builtin_commands(const char *prefix UNUSED, + struct cmdnames *cmds UNUSED) { die("not implemented"); }