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 turned on): comparison between signed and unsigned The attached patch fixes this by casting the macro's result to int. -- Matt http://ftbfs.org/
diff -ru ncurses-5.7+20090510~/include/curses.h.in ncurses-5.7+20090510/include/curses.h.in --- ncurses-5.7+20090510~/include/curses.h.in 2009-05-12 06:28:10.000000000 -0700 +++ ncurses-5.7+20090510/include/curses.h.in 2009-05-12 06:29:46.000000000 -0700 @@ -1093,9 +1093,9 @@ #if !NCURSES_OPAQUE #if defined(_XOPEN_SOURCE_EXTENDED) && @NCURSES_EXT_COLORS@ #define wattrset(win,at) ((win)->_color = PAIR_NUMBER(at), \ - (win)->_attrs = (at)) + ((int)(win)->_attrs = (at)) #else -#define wattrset(win,at) ((win)->_attrs = (at)) +#define wattrset(win,at) ((int)((win)->_attrs = (at))) #endif #endif /* NCURSES_OPAQUE */