Skip to content
/ git Public
forked from git/git

Commit d4dc0ef

Browse files
ramsay-jonespeff
authored andcommitted
compat/terminal: mark parameter of git_terminal_prompt() UNUSED
If neither HAVE_DEV_TTY nor GIT_WINDOWS_NATIVE is set, the fallback code calls the system getpass(). This unfortunately ignores the "echo" boolean parameter, as we have no way to implement that functionality. But we still have to keep the unused parameter, since our interface has to match the other implementations. Co-authored-by: Jeff King <[email protected]> Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 39bf06a commit d4dc0ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/terminal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ void restore_term(void)
594594
{
595595
}
596596

597-
char *git_terminal_prompt(const char *prompt, int echo)
597+
char *git_terminal_prompt(const char *prompt, int echo UNUSED)
598598
{
599599
return getpass(prompt);
600600
}

0 commit comments

Comments
 (0)