Mesa (master): gallivm: init some vars to silence warnings
Brian Paul
brianp at kemper.freedesktop.org
Fri Apr 16 16:02:09 UTC 2010
Module: Mesa
Branch: master
Commit: cbe11450110c970e86d7795648171154da35eaa4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbe11450110c970e86d7795648171154da35eaa4
Author: Brian Paul <brianp at vmware.com>
Date: Fri Apr 16 09:56:38 2010 -0600
gallivm: init some vars to silence warnings
---
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 5aaed62..767429b 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -1543,13 +1543,13 @@ lp_build_sample_general(struct lp_build_sample_context *bld,
const unsigned min_filter = bld->static_state->min_img_filter;
const unsigned mag_filter = bld->static_state->mag_img_filter;
const int dims = texture_dims(bld->static_state->target);
- LLVMValueRef lod, lod_fpart;
- LLVMValueRef ilevel0, ilevel1, ilevel0_vec, ilevel1_vec;
+ LLVMValueRef lod = NULL, lod_fpart = NULL;
+ LLVMValueRef ilevel0, ilevel1 = NULL, ilevel0_vec, ilevel1_vec = NULL;
LLVMValueRef width0_vec = NULL, height0_vec = NULL, depth0_vec = NULL;
LLVMValueRef width1_vec = NULL, height1_vec = NULL, depth1_vec = NULL;
LLVMValueRef row_stride0_vec = NULL, row_stride1_vec = NULL;
LLVMValueRef img_stride0_vec = NULL, img_stride1_vec = NULL;
- LLVMValueRef data_ptr0, data_ptr1;
+ LLVMValueRef data_ptr0, data_ptr1 = NULL;
/*
printf("%s mip %d min %d mag %d\n", __FUNCTION__,
More information about the mesa-commit
mailing list