From 6ee415cc6d7083bb091dfa93c617c3907a4801c9 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 7 Dec 2010 00:56:07 -0800 Subject: [PATCH] r200: Silence uninitialized variable warning. Fixes this GCC warning. r200_maos_arrays.c: In function 'r200EmitArrays': r200_maos_arrays.c:113: warning: 'emitsize' may be used uninitialized in this function --- src/mesa/drivers/dri/r200/r200_maos_arrays.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/r200/r200_maos_arrays.c b/src/mesa/drivers/dri/r200/r200_maos_arrays.c index 8a047e6419b..b62290231b9 100644 --- a/src/mesa/drivers/dri/r200/r200_maos_arrays.c +++ b/src/mesa/drivers/dri/r200/r200_maos_arrays.c @@ -200,6 +200,7 @@ void r200EmitArrays( struct gl_context *ctx, GLubyte *vimap_rev ) } default: assert(0); + emitsize = 0; } if (!rmesa->radeon.tcl.aos[nr].bo) { rcommon_emit_vector( ctx, -- 2.30.2