Mesa (master): llvmpipe: silence uninitialized var warnings

Brian Paul brianp at kemper.freedesktop.org
Thu May 13 20:17:13 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu May 13 13:21:37 2010 -0600

llvmpipe: silence uninitialized var warnings

---

 src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index f9dea30..bc7213d 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -918,7 +918,8 @@ lp_build_lod_selector(struct lp_build_sample_context *bld,
       }
       else {
          const int dims = texture_dims(bld->static_state->target);
-         LLVMValueRef dsdx, dsdy, dtdx, dtdy, drdx, drdy;
+         LLVMValueRef dsdx, dsdy;
+         LLVMValueRef dtdx = NULL, dtdy = NULL, drdx = NULL, drdy = NULL;
          LLVMValueRef rho;
 
          /*




More information about the mesa-commit mailing list