]> git.ipfire.org Git - thirdparty/git.git/commitdiff
scalar: mark unused parameters in dummy function
authorJeff King <peff@peff.net>
Sat, 17 Aug 2024 08:25:42 +0000 (04:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 16:46:24 +0000 (09:46 -0700)
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>
scalar.c

index 1fe8a93e6529a25679e506fdc18864f72a3905b2..6166a8dd4c8d1f7406c80454f521e8cdd39c32e6 100644 (file)
--- 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");
 }