mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
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 svn path=/trunk/; revision=14841
This commit is contained in:
parent
fadd959c12
commit
dada212f2a
1 changed files with 3 additions and 3 deletions
|
@ -7012,7 +7012,7 @@ static void emptyImage3D(const PixelStorageModes *psm,
|
||||||
int groupSize;
|
int groupSize;
|
||||||
int rowSize;
|
int rowSize;
|
||||||
int padding;
|
int padding;
|
||||||
GLubyte *start, *rowStart, *iter;
|
GLubyte *start, *rowStart, *iter=NULL;
|
||||||
int elementsPerLine;
|
int elementsPerLine;
|
||||||
const GLushort *iter2;
|
const GLushort *iter2;
|
||||||
int ii, jj, dd, k;
|
int ii, jj, dd, k;
|
||||||
|
@ -7380,7 +7380,7 @@ static void closestFit3D(GLenum target, GLint width, GLint height, GLint depth,
|
||||||
GLint depthAtLevelOne= (depthPowerOf2 > 1) ?
|
GLint depthAtLevelOne= (depthPowerOf2 > 1) ?
|
||||||
depthPowerOf2 >> 1 :
|
depthPowerOf2 >> 1 :
|
||||||
depthPowerOf2;
|
depthPowerOf2;
|
||||||
GLenum proxyTarget;
|
GLenum proxyTarget = 0;
|
||||||
assert(widthAtLevelOne > 0);
|
assert(widthAtLevelOne > 0);
|
||||||
assert(heightAtLevelOne > 0);
|
assert(heightAtLevelOne > 0);
|
||||||
assert(depthAtLevelOne > 0);
|
assert(depthAtLevelOne > 0);
|
||||||
|
|
Loading…
Reference in a new issue