svga: silence unused var warning in optimized build with MAYBE_UNUSED
authorBrian Paul <brianp@vmware.com>
Mon, 25 Sep 2017 20:10:53 +0000 (14:10 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 26 Sep 2017 15:51:43 +0000 (09:51 -0600)
Trivial

src/gallium/drivers/svga/svga_screen_cache.c

index 686d94aa50d8fc2e002a2851a18588ddb5d5b833..0c2b594de002a75c4d18c61d0887f81e39a6d16e 100644 (file)
@@ -364,7 +364,7 @@ svga_screen_cache_flush(struct svga_screen *svgascreen,
           * It will be done using the current context.
           */
          if (svga->swc->surface_invalidate(svga->swc, entry->handle) != PIPE_OK) {
-            enum pipe_error ret;
+            MAYBE_UNUSED enum pipe_error ret;
 
             /* Even though surface invalidation here is done after the command
              * buffer is flushed, it is still possible that it will