fix this waring
libutil/mipmap.c: In function `gluBuild3DMipmaps':
libutil/mipmap.c:7382: warning: 'proxyTarget' might be used
uninitialized in this function
by initialized the value when it declare
Modified: trunk/reactos/lib/glu32/libutil/mipmap.c
_____
Modified: trunk/reactos/lib/glu32/libutil/mipmap.c
--- trunk/reactos/lib/glu32/libutil/mipmap.c 2005-04-28 13:01:57 UTC
(rev 14840)
+++ trunk/reactos/lib/glu32/libutil/mipmap.c 2005-04-28 13:19:23 UTC
(rev 14841)
@@ -7012,7 +7012,7 @@
int groupSize;
int rowSize;
int padding;
- GLubyte *start, *rowStart, *iter;
+ GLubyte *start, *rowStart, *iter=NULL;
int elementsPerLine;
const GLushort *iter2;
int ii, jj, dd, k;
@@ -7367,7 +7367,7 @@
GLint widthPowerOf2= nearestPower(width);
GLint heightPowerOf2= nearestPower(height);
GLint depthPowerOf2= nearestPower(depth);
- GLint proxyWidth;
+ GLint proxyWidth ;
do {
/* compute level 1 width & height & depth, clamping each at 1 */
@@ -7380,7 +7380,7 @@
GLint depthAtLevelOne= (depthPowerOf2 > 1) ?
depthPowerOf2 >> 1 :
depthPowerOf2;
- GLenum proxyTarget;
+ GLenum proxyTarget = 0;
assert(widthAtLevelOne > 0);
assert(heightAtLevelOne > 0);
assert(depthAtLevelOne > 0);
Show replies by date