]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/test_opaque.c
ncurses 5.7 - patch 20090905
[ncurses.git] / test / test_opaque.c
index 3e5fafa8d9f2592bab2d1f3f1848c0a39103d050..6ae2689e61eb59e4fc238271103e1ba6050fbde2 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
+ * Copyright (c) 2007-2008,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_opaque.c,v 1.6 2008/04/05 18:03:57 tom Exp $
+ * $Id: test_opaque.c,v 1.8 2009/08/29 19:02:25 tom Exp $
  *
  * Author: Thomas E Dickey
  *
@@ -185,10 +185,10 @@ show_keyword(WINDOW *stswin, int cell, int active, const char *name)
 {
     to_keyword(stswin, cell);
     if (active == cell)
-       wstandout(stswin);
+       (void) wstandout(stswin);
     wprintw(stswin, "%s:", name);
     if (active == cell)
-       wstandend(stswin);
+       (void) wstandend(stswin);
 }
 /* *INDENT-OFF* */
 static struct {
@@ -406,7 +406,6 @@ test_set_tabsize(void)
     int y0, x0;
     int y, x;
     int save_tabsize = TABSIZE;
-    bool done = FALSE;
 
     (void) cbreak();           /* take input chars one at a time, no wait for \n */
     (void) noecho();           /* don't echo input */
@@ -418,12 +417,10 @@ test_set_tabsize(void)
        for (x = 0; x < COLS;) {
            addch('\t');
            if (addch('*') == ERR) {
-               done = TRUE;
                break;
            }
            getyx(stdscr, y0, x0);
            if (y0 != y || x0 == x) {
-               done = TRUE;
                break;
            }
        }