projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
555dc25
)
i810: Silence uninitialized variable warnings in i180tris.c
author
Vinson Lee
<vlee@vmware.com>
Sun, 13 Dec 2009 08:14:31 +0000
(
00:14
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 13 Dec 2009 08:14:31 +0000
(
00:14
-0800)
src/mesa/drivers/dri/i810/i810tris.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i810/i810tris.c
b/src/mesa/drivers/dri/i810/i810tris.c
index b508496fb6953a075455eaea187fc00a09480686..213ba541cee24a5da6fab266c47b240430e585bf 100644
(file)
--- a/
src/mesa/drivers/dri/i810/i810tris.c
+++ b/
src/mesa/drivers/dri/i810/i810tris.c
@@
-270,7
+270,8
@@
do { \
#define LOCAL_VARS(n) \
i810ContextPtr imesa = I810_CONTEXT(ctx); \
- GLuint color[n], spec[n]; \
+ GLuint color[n] = { 0 }; \
+ GLuint spec[n] = { 0 }; \
GLuint coloroffset = (imesa->vertex_size == 4 ? 3 : 4); \
GLboolean havespec = (imesa->vertex_size > 4); \
(void) color; (void) spec; (void) coloroffset; (void) havespec;