]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/rain.c
ncurses 5.7 - patch 20090829
[ncurses.git] / test / rain.c
index 411306a71f9dbcdf55690b415cf1621be44ca6e3..87d57c93dce1b4ab2dfbf8a3c11187442c83af11 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-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: rain.c,v 1.33 2008/03/22 18:12:01 tom Exp $
+ * $Id: rain.c,v 1.35 2009/08/29 19:02:25 tom Exp $
  */
 #include <test.priv.h>
 
@@ -105,7 +105,7 @@ next_j(int j)
        chtype color = COLOR_PAIR(z);
        if (z)
            color |= A_BOLD;
-       attrset(color);
+       (void) attrset(color);
     }
     return j;
 }
@@ -323,6 +323,7 @@ main(int argc GCC_UNUSED,
        last[j].x = random_x();
        last[j].y = random_y();
     }
+    j = 0;
 #endif
 
     while (!done) {