Fix all these waring by initaielize them where they are declare libutil/quad.c: In function `gluPartialDisk': libutil/quad.c:451: warning: 'texLow' might be used uninitialized in this function libutil/quad.c:451: warning: 'texHigh' might be used uninitialized in this function libutil/quad.c: In function `gluSphere': libutil/quad.c:720: warning: 'sintemp2' might be used uninitialized in this function libutil/quad.c:720: warning: 'sintemp3' might be used uninitialized in this function libutil/quad.c:720: warning: 'sintemp4' might be used uninitialized in this function libutil/quad.c:721: warning: 'costemp2' might be used uninitialized in this function libutil/quad.c:721: warning: 'costemp3' might be used uninitialized in this function libutil/quad.c:721: warning: 'costemp4' might be used uninitialized in this function
Modified: trunk/reactos/lib/glu32/libutil/quad.c
--- trunk/reactos/lib/glu32/libutil/quad.c 2005-04-28 13:19:23 UTC (rev 14841) +++ trunk/reactos/lib/glu32/libutil/quad.c 2005-04-28 13:38:30 UTC (rev 14842) @@ -448,7 +448,7 @@
GLfloat sintemp, costemp; GLfloat deltaRadius; GLfloat radiusLow, radiusHigh;
- GLfloat texLow, texHigh;
+ GLfloat texLow = 0, texHigh = 0;
GLfloat angleOffset; GLint slices2; GLint finish; @@ -717,8 +717,8 @@
GLfloat cosCache3b[CACHE_SIZE]; GLfloat angle; GLfloat zLow, zHigh;
- GLfloat sintemp1, sintemp2, sintemp3, sintemp4;
- GLfloat costemp1, costemp2, costemp3, costemp4;
+ GLfloat sintemp1, sintemp2=0, sintemp3=0, sintemp4=0;
+ GLfloat costemp1, costemp2=0, costemp3=0, costemp4=0;
GLboolean needCache2, needCache3; GLint start, finish;