r200: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Tue, 7 Dec 2010 08:56:07 +0000 (00:56 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 7 Dec 2010 08:58:54 +0000 (00:58 -0800)
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

index 8a047e6..b622902 100644 (file)
@@ -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,