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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Aug 17, 2024 at 04:25 UTC 5e75e503c4f7eea2e634e5930d164ad79071ad82
1 file changed +2 -1
scalar.c
+2 -1
@@ -400,7 +400,8 @@ static int delete_enlistment(struct strbuf *enlistment)
400 * Dummy implementation; Using `get_version_info()` would cause a link error
401 * without this.
402 */
403 -void load_builtin_commands(const char *prefix, struct cmdnames *cmds)
403 +void load_builtin_commands(const char *prefix UNUSED,
404 + struct cmdnames *cmds UNUSED)
405 {
406 die("not implemented");
407 }