From 4a2a65e916bb23d29d9f5159e9f6e199b22420b2 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Thu, 28 Apr 2005 13:38:30 +0000 Subject: [PATCH] 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 svn path=/trunk/; revision=14842 --- reactos/lib/glu32/libutil/quad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/glu32/libutil/quad.c b/reactos/lib/glu32/libutil/quad.c index 923b812a514..fdc23b1dc23 100644 --- a/reactos/lib/glu32/libutil/quad.c +++ b/reactos/lib/glu32/libutil/quad.c @@ -448,7 +448,7 @@ gluPartialDisk(GLUquadric *qobj, GLdouble innerRadius, 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 @@ gluSphere(GLUquadric *qobj, GLdouble radius, GLint slices, GLint stacks) 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;