summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svgadump
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-11 08:50:39 -0700
committerBrian Paul <brianp@vmware.com>2010-03-11 08:50:39 -0700
commit25ba04c891ce959470d55a258243b5c105de8ff5 (patch)
tree0ad8b2c137976bf5f760d8061df54b09eeca2f65 /src/gallium/drivers/svga/svgadump
parente24e5324ed1adce8da8ff268f7047ad8172bb248 (diff)
svga: use memset() to initialize u to avoid warnings
Diffstat (limited to 'src/gallium/drivers/svga/svgadump')
-rw-r--r--src/gallium/drivers/svga/svgadump/svga_shader_dump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svgadump/svga_shader_dump.c b/src/gallium/drivers/svga/svgadump/svga_shader_dump.c
index 705ca29e8f..4ee1bf2c35 100644
--- 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 );