From fadd959c1265587871366dc7b863d01cfb17cfe1 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Thu, 28 Apr 2005 13:01:57 +0000 Subject: [PATCH] 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 --- reactos/lib/glu32/libutil/mipmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/lib/glu32/libutil/mipmap.c b/reactos/lib/glu32/libutil/mipmap.c index 235733c8082..fc68022a5b0 100644 --- a/reactos/lib/glu32/libutil/mipmap.c +++ b/reactos/lib/glu32/libutil/mipmap.c @@ -4862,6 +4862,7 @@ static void fill_image(const PixelStorageModes *psm, 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 @@ static void empty_image(const PixelStorageModes *psm, 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 @@ static void scaleInternalPackedPixel(int components, 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;