summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-10-21 11:27:35 -0700
committerVinson Lee <vlee@vmware.com>2010-10-21 11:27:35 -0700
commit50095ac87c9a57e2b87220401c2dbdb255cabb4b (patch)
tree153f2162c1fd9b43b7e8b69d75327a37c9cfa3ee
parentfc59790b875f2db930f3189cb25d1f99d8c082fd (diff)
gallivm: Silence uninitialized variable warning.
Fixes this GCC warning. gallivm/lp_bld_tgsi_aos.c: In function 'lp_build_tgsi_aos': gallivm/lp_bld_tgsi_aos.c:516: warning: 'dst0' may be used uninitialized in this function gallivm/lp_bld_tgsi_aos.c:516: note: 'dst0' was declared here
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
index d5f963be58..c3c082b2b9 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
@@ -513,7 +513,7 @@ emit_instruction(
{
LLVMValueRef src0, src1, src2;
LLVMValueRef tmp0, tmp1;
- LLVMValueRef dst0;
+ LLVMValueRef dst0 = NULL;
/*
* Stores and write masks are handled in a general fashion after the long