Bug#926285: ncurses mvaddnwstr is implicit

2019-04-02 Thread Thomas Dickey
On Wed, Apr 03, 2019 at 12:43:30AM +0300, Emil Fihlman wrote:
> Package: libncursesw5-dev
> Packages: libncursesw?5.*
> Version: 6.0+20161126-1+deb9u2 (for libncursesw5-dev)
> 
> warning: implicit declaration of function ‘mvaddnwstr’
> [-Wimplicit-function-declaration] when compiling with -lncursesw.
> However, the resulting binary _does_ work so the linker does find the
> correct function.
> 
> I suggest the development package be corrected.

man ncurses

You must also define _XOPEN_SOURCE_EXTENDED when compiling for the
wide-character  library to use the extended (wide-character) func‐
tions.  The curses.h file which is installed for the  wide-charac‐
ter library is designed to be compatible with the normal library's
header.  Only the size of the WINDOW structure differs,  and  very
few  applications  require more than a pointer to WINDOWs.  If the
headers  are  installed  allowing  overwrite,  the  wide-character
library's  headers should be installed last, to allow applications
to be built using either library from the same set of headers.

man mvaddnwstr

   int mvaddnwstr(int y, int x, const wchar_t *wstr, int n);
^^^ (wide-character)

-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: Digital signature


Bug#926285: ncurses mvaddnwstr is implicit

2019-04-02 Thread Emil Fihlman
Package: libncursesw5-dev
Packages: libncursesw?5.*
Version: 6.0+20161126-1+deb9u2 (for libncursesw5-dev)

warning: implicit declaration of function ‘mvaddnwstr’
[-Wimplicit-function-declaration] when compiling with -lncursesw.
However, the resulting binary _does_ work so the linker does find the
correct function.

I suggest the development package be corrected.

I am using Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27)
x86_64 GNU/Linux and Debian GLIBC 2.24-11+deb9u3

Emil