X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fclip_printw.c;h=c90cc85910ee1370a3bc8a7d34c854d88a0abed7;hp=4a12ac8c513fd6fb7b8831e8cc2dd78915a75453;hb=59108c98bda25ae50b3a319e2bcb7f4b9a174024;hpb=dfaa1a3001fd447819f5edc2e523acc1a04f1440 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)