Mesa (master): nv50: Silence uninitialized variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Thu Sep 16 01:24:47 UTC 2010


Module: Mesa
Branch: master
Commit: b09af4c3915df2b3a27e9d07ac3e65cee0c68f4e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b09af4c3915df2b3a27e9d07ac3e65cee0c68f4e

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Sep 15 18:24:28 2010 -0700

nv50: Silence uninitialized variable warnings.

---

 src/gallium/drivers/nv50/nv50_tgsi_to_nc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
index 012d100..d6b80c3 100644
--- a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
+++ b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
@@ -1198,7 +1198,8 @@ static void
 bld_lit(struct bld_context *bld, struct nv_value *dst0[4],
         const struct tgsi_full_instruction *insn)
 {
-   struct nv_value *val0, *zero;
+   struct nv_value *val0 = NULL;
+   struct nv_value *zero = NULL;
    unsigned mask = insn->Dst[0].Register.WriteMask;
 
    if (mask & ((1 << 0) | (1 << 3)))




More information about the mesa-commit mailing list