X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_get_wstr.c;h=eb229a52a00fe0b1785f5a4ff42b12a21766a37b;hp=d1424cb1b50ad2b269f30ded5b8d04830453b877;hb=c8e187fc9682a3c5cfaebc480fc98d8585f6caf6;hpb=03a795bde58b3280a4e9d80029a3b7fec13c79ad diff --git a/test/test_get_wstr.c b/test/test_get_wstr.c index d1424cb1..eb229a52 100644 --- a/test/test_get_wstr.c +++ b/test/test_get_wstr.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007 Free Software Foundation, Inc. * + * Copyright (c) 2007,2009 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_get_wstr.c,v 1.4 2007/07/28 19:46:34 tom Exp $ + * $Id: test_get_wstr.c,v 1.6 2009/08/29 19:02:25 tom Exp $ * * Author: Thomas E Dickey * @@ -89,7 +89,7 @@ MovePrompt(WINDOW *txtwin, int limit, int y, int x) } static int -ShowFlavor(WINDOW *strwin, WINDOW *txtwin, Flavors flavor, int limit) +ShowFlavor(WINDOW *strwin, WINDOW *txtwin, int flavor, int limit) { const char *name = "?"; bool limited = FALSE; @@ -269,7 +269,7 @@ test_get_wstr(int level, char **argv, WINDOW *strwin) *buffer = '\0'; rc = ERR; echo(); - wattrset(txtwin, A_REVERSE); + (void) wattrset(txtwin, A_REVERSE); switch (flavor) { case eGetStr: if (txtwin != stdscr) { @@ -307,9 +307,9 @@ test_get_wstr(int level, char **argv, WINDOW *strwin) break; } noecho(); - wattrset(txtwin, A_NORMAL); + (void) wattrset(txtwin, A_NORMAL); wprintw(strwin, "%d", rc); - waddwstr(strwin, (wchar_t *) buffer); + (void) waddwstr(strwin, (wchar_t *) buffer); wnoutrefresh(strwin); break; default: