diff options
author | Brian Paul <[email protected]> | 2016-05-26 18:57:51 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-05-27 10:00:56 -0600 |
commit | 9be122e9b0fc6b0a0651601556d0ae2be9a159ee (patch) | |
tree | bec74c8ad6bec1583b55096806ad6de7ec5cdb88 /src/gallium/drivers | |
parent | 8314dd7ff2c4719ffb64b202cf5fdd0e38ad276e (diff) |
svga: use MAYBE_UNUSED to silence release-build warnings
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_draw.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c index 0b9ea889afa..f314d556063 100644 --- a/src/gallium/drivers/svga/svga_draw.c +++ b/src/gallium/drivers/svga/svga_draw.c @@ -769,17 +769,14 @@ check_draw_params(struct svga_hwtnl *hwtnl, assert(range->indexWidth == range->indexArray.stride); if (ib) { - unsigned size = ib->width0; - unsigned offset = range->indexArray.offset; - unsigned stride = range->indexArray.stride; - unsigned count; + MAYBE_UNUSED unsigned size = ib->width0; + MAYBE_UNUSED unsigned offset = range->indexArray.offset; + MAYBE_UNUSED unsigned stride = range->indexArray.stride; + MAYBE_UNUSED unsigned count; assert(size); assert(offset < size); assert(stride); - (void) size; - (void) offset; - (void) stride; switch (range->primType) { case SVGA3D_PRIMITIVE_POINTLIST: |