diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-11 08:50:39 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-11 08:50:39 -0700 |
commit | 25ba04c891ce959470d55a258243b5c105de8ff5 (patch) | |
tree | 0ad8b2c137976bf5f760d8061df54b09eeca2f65 | |
parent | e24e5324ed1adce8da8ff268f7047ad8172bb248 (diff) |
svga: use memset() to initialize u to avoid warnings
-rw-r--r-- | src/gallium/drivers/svga/svgadump/svga_shader_dump.c | 4 |
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 705ca29e8f50..4ee1bf2c353b 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 ); |