--- ray/src/rt/srcobstr.c 2011/02/14 20:13:38 2.16 +++ ray/src/rt/srcobstr.c 2013/08/07 05:10:09 2.17 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: srcobstr.c,v 2.16 2011/02/14 20:13:38 greg Exp $"; +static const char RCSid[] = "$Id: srcobstr.c,v 2.17 2013/08/07 05:10:09 greg Exp $"; #endif /* * Source occlusion caching routines @@ -63,7 +63,7 @@ initobscache(int sn) FVECT rorg, rdir; RREAL d; int i, j, k; - int ax, ax1, ax2; + int ax=0, ax1=1, ax2=2; if (srcp->sflags & (SSKIP|SPROX|SSPOT|SVIRTUAL)) return; /* don't cache these */ @@ -200,7 +200,7 @@ srcobstructp(register RAY *r) initobscache(r->rsrc); /* compute cache index */ if (srcp->sflags & SDISTANT) { - int ax, ax1, ax2; + int ax=0, ax1=1, ax2=2; double t; ax = srcp->obscache->p.d.ax; if ((ax1 = ax+1) >= 3) ax1 -= 3;