From: Daniel Borca Date: Thu, 19 Aug 2004 06:51:48 +0000 (+0000) Subject: silence compiler warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd9757d3b98b89b68dbf62bb9eee0f9dca30d95b;p=mesa.git silence compiler warnings --- diff --git a/src/mesa/drivers/glide/fxddtex.c b/src/mesa/drivers/glide/fxddtex.c index 419c9d17c6c..f0bb74f82bc 100644 --- a/src/mesa/drivers/glide/fxddtex.c +++ b/src/mesa/drivers/glide/fxddtex.c @@ -60,12 +60,12 @@ _mesa_halve2x2_teximage2d ( GLcontext *ctx, GLint dstWidth = srcWidth / 2; GLint dstHeight = srcHeight / 2; GLint srcRowStride = srcWidth * bytesPerPixel; - GLubyte *src = srcImage; + GLubyte *src = (GLubyte *)srcImage; GLubyte *dst = dstImage; GLuint bpt = 0; - GLubyte *_s; - GLubyte *_d; + GLubyte *_s = NULL; + GLubyte *_d = NULL; GLenum _t; if (texImage->TexFormat->MesaFormat == MESA_FORMAT_RGB565) {