From: Brian Paul Date: Mon, 25 Sep 2017 20:10:53 +0000 (-0600) Subject: svga: silence unused var warning in optimized build with MAYBE_UNUSED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8822ea100cfd7482290c3c6b2a7200c8b888a7f4;p=mesa.git svga: silence unused var warning in optimized build with MAYBE_UNUSED Trivial --- diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c index 686d94aa50d..0c2b594de00 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.c +++ b/src/gallium/drivers/svga/svga_screen_cache.c @@ -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