From: Vinson Lee Date: Tue, 15 Dec 2009 21:12:12 +0000 (-0800) Subject: r128: Silence uninitialized variable warnings in r128_tris.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca02109e91ce7aab76eaea93d41ca98dfea22a36;p=mesa.git r128: Silence uninitialized variable warnings in r128_tris.c. --- diff --git a/src/mesa/drivers/dri/r128/r128_tris.c b/src/mesa/drivers/dri/r128/r128_tris.c index 5b91271d740..82d825b8d28 100644 --- a/src/mesa/drivers/dri/r128/r128_tris.c +++ b/src/mesa/drivers/dri/r128/r128_tris.c @@ -216,7 +216,8 @@ do { \ #define LOCAL_VARS(n) \ r128ContextPtr rmesa = R128_CONTEXT(ctx); \ - GLuint color[n], spec[n]; \ + GLuint color[n] = { 0 }; \ + GLuint spec[n] = { 0 }; \ GLuint coloroffset = rmesa->coloroffset; \ GLuint specoffset = rmesa->specoffset; \ GLboolean havespec = (rmesa->specoffset != 0); \