Skip to content

Commit 5e75e50

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0b1376d commit 5e75e50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scalar.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ static int delete_enlistment(struct strbuf *enlistment)
400400
* Dummy implementation; Using `get_version_info()` would cause a link error
401401
* without this.
402402
*/
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)
404405
{
405406
die("not implemented");
406407
}

0 commit comments

Comments
 (0)