mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 23:28:15 +00:00
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 svn path=/trunk/; revision=14840
This commit is contained in:
parent
6184590544
commit
fadd959c12
|
@ -4862,6 +4862,7 @@ static void fill_image(const PixelStorageModes *psm,
|
||||||
if (padding) {
|
if (padding) {
|
||||||
rowsize += psm->unpack_alignment - padding;
|
rowsize += psm->unpack_alignment - padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
start = (const GLubyte *) userdata + psm->unpack_skip_rows * rowsize +
|
start = (const GLubyte *) userdata + psm->unpack_skip_rows * rowsize +
|
||||||
(psm->unpack_skip_pixels * components / 8);
|
(psm->unpack_skip_pixels * components / 8);
|
||||||
elements_per_line = width * components;
|
elements_per_line = width * components;
|
||||||
|
@ -5102,7 +5103,7 @@ static void empty_image(const PixelStorageModes *psm,
|
||||||
GLint group_size;
|
GLint group_size;
|
||||||
GLint elements_per_line;
|
GLint elements_per_line;
|
||||||
GLubyte *start;
|
GLubyte *start;
|
||||||
GLubyte *iter;
|
GLubyte *iter = NULL;
|
||||||
const GLushort *iter2;
|
const GLushort *iter2;
|
||||||
GLint i, j, k;
|
GLint i, j, k;
|
||||||
GLint myswap_bytes;
|
GLint myswap_bytes;
|
||||||
|
@ -5987,7 +5988,7 @@ static void scaleInternalPackedPixel(int components,
|
||||||
int i,j,k,xindex;
|
int i,j,k,xindex;
|
||||||
|
|
||||||
const char *temp, *temp0;
|
const char *temp, *temp0;
|
||||||
int outindex;
|
int outindex = 0;
|
||||||
|
|
||||||
int lowx_int, highx_int, lowy_int, highy_int;
|
int lowx_int, highx_int, lowy_int, highy_int;
|
||||||
float x_percent, y_percent;
|
float x_percent, y_percent;
|
||||||
|
|
Loading…
Reference in a new issue