gallivm: Silence unused variable warnings on release builds.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 20 Mar 2015 12:02:42 +0000 (12:02 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 22 Mar 2015 08:23:24 +0000 (08:23 +0000)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c
src/gallium/auxiliary/gallivm/lp_bld_bitarit.c

index 956b37a7f39d66c27f3df1d811a4151dd491f1b1..9daa93eec3ebfb5ed71287834db270b5e7be04d6 100644 (file)
@@ -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";
index 9892d7aa2b8b26b251aef23fe686c6409fb1dbcb..f3fa5f490aad3cb349a38892276eefdeadcb2ce7 100644 (file)
@@ -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;