svga: use MAYBE_UNUSED to silence release-build warnings
authorBrian Paul <brianp@vmware.com>
Fri, 27 May 2016 00:57:51 +0000 (18:57 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 27 May 2016 16:00:56 +0000 (10:00 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_draw.c

index 0b9ea889afabe0fa99f222734f9bed7e7e249ff5..f314d5560633ac4e973684b398287097a7eabb3c 100644 (file)
@@ -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: