From: Vinson Lee Date: Tue, 15 Dec 2009 01:30:15 +0000 (-0800) Subject: mga: Silence uninitialized variable warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e5fe39f5051bb758b98ed4b9a2b9d550b588edf;p=mesa.git mga: Silence uninitialized variable warnings. --- diff --git a/src/mesa/drivers/dri/mga/mgatris.c b/src/mesa/drivers/dri/mga/mgatris.c index b93a21c3acf..c1bcd4b8531 100644 --- a/src/mesa/drivers/dri/mga/mgatris.c +++ b/src/mesa/drivers/dri/mga/mgatris.c @@ -397,7 +397,8 @@ do { \ #define LOCAL_VARS(n) \ mgaContextPtr mmesa = MGA_CONTEXT(ctx); \ - GLuint color[n], spec[n]; \ + GLuint color[n] = { 0 }; \ + GLuint spec[n] = { 0 }; \ (void) color; (void) spec;