gallium/util: silence silence unused var warnings for non-debug build
authorBrian Paul <brianp@vmware.com>
Fri, 29 May 2015 22:02:44 +0000 (16:02 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 1 Jun 2015 13:42:05 +0000 (07:42 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_format_etc.c

index f909b16081a37ddeb3417dd56f91dad0644a8d7c..63e03ff5cc2b22adf77469b7f8595bee4460f9cf 100644 (file)
@@ -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);