From 8822ea100cfd7482290c3c6b2a7200c8b888a7f4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 25 Sep 2017 14:10:53 -0600 Subject: [PATCH] svga: silence unused var warning in optimized build with MAYBE_UNUSED Trivial --- src/gallium/drivers/svga/svga_screen_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2