diff options
author | Jeff King <peff@peff.net> | 2024-08-17 10:25:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-17 18:46:24 +0200 |
commit | 5e75e503c4f7eea2e634e5930d164ad79071ad82 (patch) | |
tree | 0fbede8815ed1f749c4bb61f8345da627dae1ed2 /scalar.c | |
parent | daemon: mark unused parameters in non-posix fallbacks (diff) | |
download | git-5e75e503c4f7eea2e634e5930d164ad79071ad82.tar.xz git-5e75e503c4f7eea2e634e5930d164ad79071ad82.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | scalar.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); } |