X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Frain.c;h=87d57c93dce1b4ab2dfbf8a3c11187442c83af11;hp=411306a71f9dbcdf55690b415cf1621be44ca6e3;hb=c8e187fc9682a3c5cfaebc480fc98d8585f6caf6;hpb=920d493ac02ed9bbbe1e5472e665c718bfdee471 diff --git a/test/rain.c b/test/rain.c index 411306a7..87d57c93 100644 --- a/test/rain.c +++ b/test/rain.c @@ -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 @@ -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) {