projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24e532
)
svga: use memset() to initialize u to avoid warnings
author
Brian Paul
<brianp@vmware.com>
Thu, 11 Mar 2010 15:50:39 +0000
(08:50 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 11 Mar 2010 15:50:39 +0000
(08:50 -0700)
src/gallium/drivers/svga/svgadump/svga_shader_dump.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svgadump/svga_shader_dump.c
b/src/gallium/drivers/svga/svgadump/svga_shader_dump.c
index 705ca29e8f501b34d1ba48bd95f2bc00f4f6d27d..4ee1bf2c353bb04f9c7fa03a4c1e0aee53fac2b2 100644
(file)
--- a/
src/gallium/drivers/svga/svgadump/svga_shader_dump.c
+++ b/
src/gallium/drivers/svga/svgadump/svga_shader_dump.c
@@
-360,7
+360,9
@@
dump_dstreg(struct sh_dstreg dstreg,
union {
struct sh_reg reg;
struct sh_dstreg dstreg;
- } u = { { 0 } };
+ } u;
+
+ memset(&u, 0, sizeof(u));
assert( (dstreg.modifier & (SVGA3DDSTMOD_SATURATE | SVGA3DDSTMOD_PARTIALPRECISION)) == dstreg.modifier );