[PATCH] compat/terminal: mark parameter of git_terminal_prompt() UNUSED
- From
Ramsay Jones <ramsay@ramsayjones.plus.com>
- Date
- Aug 29, 2024, 21:57 UTC
- Message-ID
- <d8c5e920-aff7-4e4b-af77-0d3193466b57@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> ---
Hi,
The 'seen' branch fails to compile on cygwin (but its fine on Linux), due to an unused parameter. I haven't looked too hard at the code (at first blush, it seemed to me that it should not even be trying to compile that code, but ...), I simply added an UNUSED to fix the build. ;)
So, this may not be the correct 'fix' for this, but I thought I should report it here, since I don't have time to look into this now. sorry! :(
ATB, Ramsay Jones
compat/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compat/terminal.c b/compat/terminal.c index 0afda730f2..d54efa1c5d 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -594,7 +594,7 @@ void restore_term(void) { } -char *git_terminal_prompt(const char *prompt, int echo) +char *git_terminal_prompt(const char *prompt, int echo UNUSED) { return getpass(prompt); }
-- 2.46.0