Mesa (master): llvmpipe: remove unused variables to fix compile warnings

Marek Olšák mareko at kemper.freedesktop.org
Mon Oct 8 23:15:56 UTC 2012


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Tue Oct  9 01:10:56 2012 +0200

llvmpipe: remove unused variables to fix compile warnings

---

 src/gallium/auxiliary/gallivm/lp_bld_const.c    |    3 +--
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c |    6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_const.c b/src/gallium/auxiliary/gallivm/lp_bld_const.c
index 35799a1..003901a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_const.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_const.c
@@ -365,14 +365,13 @@ lp_build_const_aos(struct gallivm_state *gallivm,
                    const unsigned char *swizzle)
 {
    const unsigned char default_swizzle[4] = {0, 1, 2, 3};
-   LLVMTypeRef elem_type;
    LLVMValueRef elems[LP_MAX_VECTOR_LENGTH];
    unsigned i;
 
    assert(type.length % 4 == 0);
    assert(type.length <= LP_MAX_VECTOR_LENGTH);
 
-   elem_type = lp_build_elem_type(gallivm, type);
+   lp_build_elem_type(gallivm, type);
 
    if(swizzle == NULL)
       swizzle = default_swizzle;
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
index 0666bba..625aac2 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
@@ -362,8 +362,6 @@ emit_tex(struct lp_build_tgsi_aos_context *bld,
    unsigned target;
    unsigned unit;
    LLVMValueRef coords;
-   LLVMValueRef ddx;
-   LLVMValueRef ddy;
    struct lp_derivatives derivs;
 
    if (!bld->sampler) {
@@ -376,8 +374,8 @@ emit_tex(struct lp_build_tgsi_aos_context *bld,
    coords = lp_build_emit_fetch( &bld->bld_base, inst, 0 , LP_CHAN_ALL);
 
    if (0 && modifier == LP_BLD_TEX_MODIFIER_EXPLICIT_DERIV) {
-      ddx = lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL);
-      ddy = lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL);
+      lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL);
+      lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL);
       unit = inst->Src[3].Register.Index;
    }  else {
 #if 0




More information about the mesa-commit mailing list