X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fncurses.c;h=d5b5a63fac021f36a8c2a1bba6c395b99c148eaf;hp=df2d064c393c488fbda6a3371b3ee01761929cf4;hb=b9cd971c38eeeb2394d3da08edfd3c5dfc71694e;hpb=c120fddebe9e9c1e2b29dbd744a6b1d03652bf8b diff --git a/test/ncurses.c b/test/ncurses.c index df2d064c..d5b5a63f 100644 --- a/test/ncurses.c +++ b/test/ncurses.c @@ -40,7 +40,7 @@ AUTHOR Author: Eric S. Raymond 1993 Thomas E. Dickey (beginning revision 1.27 in 1996). -$Id: ncurses.c,v 1.368 2011/05/21 18:50:56 tom Exp $ +$Id: ncurses.c,v 1.370 2011/09/17 21:57:49 tom Exp $ ***************************************************************************/ @@ -1675,8 +1675,8 @@ wide_show_attr(int row, int skip, bool arrow, chtype attr, short pair, const cha add_wch(&ch); } } else { - attr_t old_attr; - short old_pair; + attr_t old_attr = 0; + short old_pair = 0; (void) attr_get(&old_attr, &old_pair, 0); (void) attr_set(attr, pair, 0); @@ -3360,6 +3360,7 @@ show_upper_widechars(int first, int repeat, int space, attr_t attr, short pair) * The repeat-count may make text wrap - avoid that. */ getyx(stdscr, y, x); + (void) y; if (x >= col + (COLS / 2) - 2) break; } while (--count > 0);