Mesa (mesa_7_7_branch): tgsi/ureg: Silence uninitialized variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Mon Dec 28 01:43:03 UTC 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 0463ee64e39951257d0bb7c5a9b6c894fe761dd1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0463ee64e39951257d0bb7c5a9b6c894fe761dd1

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Dec 27 17:40:48 2009 -0800

tgsi/ureg: Silence uninitialized variable warnings.

---

 src/gallium/auxiliary/tgsi/tgsi_ureg.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 3f752e9..bf39cf5 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -780,8 +780,8 @@ ureg_insn(struct ureg_program *ureg,
    unsigned i;
    boolean saturate;
    boolean predicate;
-   boolean negate;
-   unsigned swizzle[4];
+   boolean negate = FALSE;
+   unsigned swizzle[4] = { 0 };
 
    saturate = nr_dst ? dst[0].Saturate : FALSE;
    predicate = nr_dst ? dst[0].Predicate : FALSE;
@@ -827,8 +827,8 @@ ureg_tex_insn(struct ureg_program *ureg,
    unsigned i;
    boolean saturate;
    boolean predicate;
-   boolean negate;
-   unsigned swizzle[4];
+   boolean negate = FALSE;
+   unsigned swizzle[4] = { 0 };
 
    saturate = nr_dst ? dst[0].Saturate : FALSE;
    predicate = nr_dst ? dst[0].Predicate : FALSE;




More information about the mesa-commit mailing list