On Fri, May 15, 2009 at 08:55:10PM -0400, Thomas Dickey wrote:
On Fri, 15 May 2009, Matt Kraai wrote:
I'm able to reproduce the problem by compiling the following file:
#include curses.h
void
foo (void)
{
standout () == ERR;
}
with the following command line:
gcc -Wsign-compare -c
Package: libncurses5-dev
Version: 5.7+20090510-1
Tags: patch
The standout macro expands to
(((stdscr)-_attrs = (((1UL) ((8) + 8)
If this is compared against ERR, which expands to (-1), and GCC's
-Wsign-compare option is enabled, GCC displays the following warning (or
error, if -Werror is
2 matches
Mail list logo