Skip to contentSkip to conversation

compat/getpass.c: Fix a sparse "symbol not declared" warning

PATCH In review Ramsay Jones 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat/getpass.c: Fix a sparse "symbol not declared" warning

In particular, sparse complains as follows:

SP compat/getpass.c
compat/getpass.c:5:6: warning: symbol 'getpass_echo' was not \
declared. Should it be static?

In order to suppress the warning, we include the getpass.h header file which contains an appropriate extern declaration.

---

Hi Jeff,

When you next re-roll your most recent credentials/getpass series, could you please squash this patch in. (This patch was against pu @ 1cc922af, but I guess you need to apply a similar patch to commit 8eca119c "stub out getpass_echo function", 27-11-2011 instead)

Thanks!

ATB,
Ramsay Jones

 compat/getpass.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
compat/getpass.c +1 -0
index b5bd1dd..a145d27 100644
@@ -1,4 +1,5 @@
 #include "../git-compat-util.h"
+#include "getpass.h"
 
 #ifdef HAVE_DEV_TTY
 
Signature · 1 line
1.7.7
#1 lore raw
Quoted 4 lines · Ramsay Jones

When you next re-roll your most recent credentials/getpass series, could you please squash this patch in. (This patch was against pu @ 1cc922af, but I guess you need to apply a similar patch to commit 8eca119c "stub out getpass_echo function", 27-11-2011 instead)

Sure, makes sense. Thanks.

-Peff