On Mon, 17 Aug 2009, Guillem Jover wrote:

Package: libncursesw5-dev
Version: 5.7+20090803-1
Severity: normal

Hi!

Since some time now this code has started producing warnings when
built with -Wall, which is a bit annoying as it clutters the
compilation logs, and distracts from actual warnings from the code
itself:

I've not seen that warning for a while - I'm using

g++ (Debian 4.3.3-14) 4.3.3

Is your compiler version different, or is there some ifdef that I'm
not seeing, which causes a different behavior?

,--- ncurses-warn.cc
#include <ncursesw/ncurses.h>

int main()
{
        int attr = A_NORMAL;
        attrset(attr);
        return 0;
}
`---

$ g++ -Wall ncurses-warn.cc -o ncurses-warn -lncursesw
ncurses-warn.cc: In function ‘int main()’:
ncurses-warn.cc:6: warning: value computed is not used

regards,
guillem





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

Reply via email to