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 <peff@peff.net> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramsay Jones committed Aug 31, 2024 at 15:58 UTC d4dc0efd7d4b71acadae61f619b9e84f97d15c83
1 file changed +1 -1
compat/terminal.c
+1 -1
@@ -594,7 +594,7 @@ void restore_term(void)
594 {
595 }
596
597 -char *git_terminal_prompt(const char *prompt, int echo)
597 +char *git_terminal_prompt(const char *prompt, int echo UNUSED)
598 {
599 return getpass(prompt);
600 }