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 8a047e6419b38522ebcbdb3595ae1355490f1256..b62290231b97933914a8ba057a0c20d7e4786cbf 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,