[Mesa-dev] [PATCH 15/15] gallivm: Silence unused variable warnings on release builds.

Jose Fonseca jfonseca at vmware.com
Fri Mar 20 06:59:41 PDT 2015


---
 src/gallium/auxiliary/gallivm/lp_bld_arit.c    | 2 ++
 src/gallium/auxiliary/gallivm/lp_bld_bitarit.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index 0d4eaea..3ee1646 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@ -1831,6 +1831,8 @@ lp_build_round_altivec(struct lp_build_context *bld,
    assert(lp_check_value(type, a));
    assert(util_cpu_caps.has_altivec);
 
+   (void)type;
+
    switch (mode) {
    case LP_BUILD_ROUND_NEAREST:
       intrinsic = "llvm.ppc.altivec.vrfin";
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c b/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
index 9892d7a..f3fa5f4 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
@@ -182,6 +182,8 @@ lp_build_shl(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
    assert(lp_check_value(type, a));
    assert(lp_check_value(type, b));
 
+   (void)type;
+
    res = LLVMBuildShl(builder, a, b, "");
 
    return res;
-- 
2.1.0



More information about the mesa-dev mailing list