X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=inline;f=test%2Fclip_printw.c;fp=test%2Fclip_printw.c;h=c90cc85910ee1370a3bc8a7d34c854d88a0abed7;hb=c8e187fc9682a3c5cfaebc480fc98d8585f6caf6;hp=4a12ac8c513fd6fb7b8831e8cc2dd78915a75453;hpb=3f5a74a97cf8d86a8a8a78c7b268f49ccdc4101c;p=ncurses.git diff --git a/test/clip_printw.c b/test/clip_printw.c index 4a12ac8c..c90cc859 100644 --- a/test/clip_printw.c +++ b/test/clip_printw.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: clip_printw.c,v 1.3 2009/07/17 09:28:52 tom Exp $ + * $Id: clip_printw.c,v 1.4 2009/08/29 19:00:44 tom Exp $ * * demonstrate how to use printw without wrapping. */ @@ -327,7 +327,7 @@ test_clipping(WINDOW *win) do { switch (st.ch) { case '.': /* change from current position */ - wattrset(win, st.attr | COLOR_PAIR(st.pair)); + (void) wattrset(win, st.attr | COLOR_PAIR(st.pair)); if (st.count > 0) { need = st.count + 1; sprintf(fmt, "%%c%%%ds%%c", st.count); @@ -367,6 +367,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) ExitProgram(EXIT_SUCCESS); } + #else int main(void)