summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-04-27 13:05:53 +0200
committerMarek Olšák <[email protected]>2011-04-27 13:16:35 +0200
commit31200d0688b67a0d764ad7fe4c2761d0f8d993d8 (patch)
treee968f8cdda9337fc6f91c7e36182b11922272d04 /src/gallium/auxiliary
parente031bed122a8902808b197549e7952cde10d310c (diff)
gallivm: fix warning: ‘value’ may be used uninitialized in this function
The path where it's uninitialized is guarded by an assert.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index d1585c8e2b7..d8adb9fbfaf 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -2565,7 +2565,7 @@ lp_build_system_values_array(struct gallivm_state *gallivm,
for (i = 0; i < info->num_system_values; i++) {
LLVMValueRef index = lp_build_const_int32(gallivm, i * 4);
- LLVMValueRef ptr, value;
+ LLVMValueRef ptr, value = 0;
switch (info->system_value_semantic_name[i]) {
case TGSI_SEMANTIC_INSTANCEID: