projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ff6ed2
)
r200: Silence uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Tue, 7 Dec 2010 08:56:07 +0000
(
00:56
-0800)
committer
Vinson 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r200/r200_maos_arrays.c
b/src/mesa/drivers/dri/r200/r200_maos_arrays.c
index
8a047e6
..
b622902
100644
(file)
--- 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,