[PATCH 15/15] scalar: mark unused parameters in dummy function
- From
Jeff King <peff@peff.net>
- Date
- Aug 17, 2024, 08:25 UTC
- Message-ID
- <20240817082542.GO10287@coredump.intra.peff.net>
- In-Reply-To
- <20240817082101.GA6761@coredump.intra.peff.net>
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> --- scalar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
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"); }
-- 2.46.0.585.gd6679c16d8