From 51d08d55f46655715cb4a4ef5d14fb7d051b989a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 29 May 2015 16:02:44 -0600 Subject: [PATCH] gallium/util: silence silence unused var warnings for non-debug build Reviewed-by: Jose Fonseca --- src/gallium/auxiliary/util/u_format_etc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_format_etc.c b/src/gallium/auxiliary/util/u_format_etc.c index f909b16081a..63e03ff5cc2 100644 --- a/src/gallium/auxiliary/util/u_format_etc.c +++ b/src/gallium/auxiliary/util/u_format_etc.c @@ -65,11 +65,10 @@ util_format_etc1_rgb8_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride, con void util_format_etc1_rgb8_fetch_rgba_float(float *dst, const uint8_t *src, unsigned i, unsigned j) { - const unsigned bw = 4, bh = 4; struct etc1_block block; uint8_t tmp[3]; - assert(i < bw && j < bh); + assert(i < 4 && j < 4); /* check i, j against 4x4 block size */ etc1_parse_block(&block, src); etc1_fetch_texel(&block, i, j, tmp); -- 2.30.2