summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-20 12:02:42 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-22 08:23:24 +0000
commit397b491173f0d2df4deb44d21c170bf16840d507 (patch)
treedb54ae26599fd8e4b717480a7cf6d8443c00489b /src/gallium/auxiliary/gallivm
parent06ac7178108ff8eb6e3eae103a302d79f0972d1a (diff)
downloadexternal_mesa3d-397b491173f0d2df4deb44d21c170bf16840d507.zip
external_mesa3d-397b491173f0d2df4deb44d21c170bf16840d507.tar.gz
external_mesa3d-397b491173f0d2df4deb44d21c170bf16840d507.tar.bz2
gallivm: Silence unused variable warnings on release builds.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit.c2
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_bitarit.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index 956b37a..9daa93e 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;