Home GnuPG

Avoid implicit declaration of function addnwstr.
21e83f422667Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Avoid implicit declaration of function addnwstr.

* pinentry/pinentry-curses.c [HAVE_NCURSESW]: Include <ncursesw/curses.h>.
[! HAVE_NCURSESW]: Only include <curses.h> in this case.

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]);
^

Details

Provenance
dkgAuthored on May 13 2015, 10:36 PM
nealCommitted on May 16 2015, 12:52 PM
Parents
rP4549998627ee: tty: Handle the case where the user needs to repeat the passphrase.
Branches
Unknown
Tags
Unknown