summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-09-15 18:24:28 -0700
committerVinson Lee <vlee@vmware.com>2010-09-15 18:24:28 -0700
commitb09af4c3915df2b3a27e9d07ac3e65cee0c68f4e (patch)
treed343b1ae9d90ebf54c573c68834678560a6f9ddd /src
parent00118c4077ceee6d1f8b33713cf8587609969d45 (diff)
nv50: Silence uninitialized variable warnings.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nv50/nv50_tgsi_to_nc.c3
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 012d100e7a..d6b80c3ea7 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)))