Mesa (master): gallivm: silence unused var warnings for non-debug build
Brian Paul
brianp at kemper.freedesktop.org
Mon Jun 1 13:48:09 UTC 2015
Module: Mesa
Branch: master
Commit: 87813c504a8a72198a6a4e8de9e5905fd751ac2c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87813c504a8a72198a6a4e8de9e5905fd751ac2c
Author: Brian Paul <brianp at vmware.com>
Date: Fri May 29 16:00:52 2015 -0600
gallivm: silence unused var warnings for non-debug build
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/gallivm/lp_bld_format_aos.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
index 3c25c32..efe7170 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
@@ -405,6 +405,7 @@ lp_build_fetch_rgba_aos(struct gallivm_state *gallivm,
aligned, base_ptr, offset, TRUE);
assert(format_desc->block.bits <= vec_len);
+ (void) vec_len; /* silence unused var warning for non-debug build */
packed = LLVMBuildBitCast(gallivm->builder, packed, dst_vec_type, "");
return lp_build_format_swizzle_aos(format_desc, &bld, packed);
More information about the mesa-commit
mailing list