[PATCH] avoid implicit declaration of function addnwstr

Neal H. Walfield neal at walfield.org
Sat May 16 13:38:59 CEST 2015


Applied with a slightly different change log entry.

Thanks!

:) Neal

At Wed, 13 May 2015 16:36:26 -0400,
Daniel Kahn Gillmor wrote:
> 
> When built with libncursesw, we see this problem:
> 
> pinentry-curses.c:440:8: warning: implicit declaration of function ‘addnwstr’ [-Wimplicit-function-declaration]
>         ADDCH (start[i]);
>         ^
> ---
>  pinentry/pinentry-curses.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/pinentry/pinentry-curses.c b/pinentry/pinentry-curses.c
> index 135d714..9f95bff 100644
> --- a/pinentry/pinentry-curses.c
> +++ b/pinentry/pinentry-curses.c
> @@ -22,7 +22,11 @@
>  #include <config.h>
>  #endif
>  #include <assert.h>
> +#ifdef HAVE_NCURSESW
> +#include <ncursesw/curses.h>
> +#else
>  #include <curses.h>
> +#endif
>  #include <signal.h>
>  #include <fcntl.h>
>  #include <unistd.h>
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> Gnupg-devel mailing list
> Gnupg-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-devel



More information about the Gnupg-devel mailing list