From: Brian Paul Date: Fri, 29 May 2015 22:00:52 +0000 (-0600) Subject: gallivm: silence unused var warnings for non-debug build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87813c504a8a72198a6a4e8de9e5905fd751ac2c;p=mesa.git gallivm: silence unused var warnings for non-debug build Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c index 3c25c329edd..efe71704c3a 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);