fix waring with insiate iter
libutil/mipmap.c: In function `gluScaleImage':
libutil/mipmap.c:5105: warning: 'iter' might be used uninitialized in
this function
remve outindex it is not being use at all
libutil/mipmap.c: In function `scaleInternalPackedPixel':
libutil/mipmap.c:5990: warning: 'outindex' might be used uninitialized
in this function
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 03:37:01 UTC
(rev 14839)
+++ trunk/reactos/lib/glu32/libutil/mipmap.c 2005-04-28 13:01:57 UTC
(rev 14840)
@@ -4862,6 +4862,7 @@
if (padding) {
rowsize += psm->unpack_alignment - padding;
}
+
start = (const GLubyte *) userdata + psm->unpack_skip_rows *
rowsize +
(psm->unpack_skip_pixels * components / 8);
elements_per_line = width * components;
@@ -5102,7 +5103,7 @@
GLint group_size;
GLint elements_per_line;
GLubyte *start;
- GLubyte *iter;
+ GLubyte *iter = NULL;
const GLushort *iter2;
GLint i, j, k;
GLint myswap_bytes;
@@ -5987,7 +5988,7 @@
int i,j,k,xindex;
const char *temp, *temp0;
- int outindex;
+ int outindex = 0;
int lowx_int, highx_int, lowy_int, highy_int;
float x_percent, y_percent;
Show replies by date