From 782016ea42bba3a3e3c5f116bd6b3b6c5f314d53 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 30 Aug 2020 17:22:17 -0700 Subject: [PATCH] libgl-gdi: Fix unused-variable warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit src/gallium/targets/libgl-gdi/libgl_gdi.c:59:16: warning: ‘use_swr’ defined but not used [-Wunused-variable] 59 | static boolean use_swr = FALSE; | ^~~~~~~ src/gallium/targets/libgl-gdi/libgl_gdi.c:58:16: warning: ‘use_llvmpipe’ defined but not used [-Wunused-variable] 58 | static boolean use_llvmpipe = FALSE; | ^~~~~~~~~~~~ Signed-off-by: Vinson Lee Reviewed-by: Eric Anholt Part-of: --- src/gallium/targets/libgl-gdi/libgl_gdi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/targets/libgl-gdi/libgl_gdi.c b/src/gallium/targets/libgl-gdi/libgl_gdi.c index fd7b0ae..59094ec 100644 --- a/src/gallium/targets/libgl-gdi/libgl_gdi.c +++ b/src/gallium/targets/libgl-gdi/libgl_gdi.c @@ -55,8 +55,12 @@ #include "swr/swr_public.h" #endif +#ifdef GALLIUM_LLVMPIPE static boolean use_llvmpipe = FALSE; +#endif +#ifdef GALLIUM_SWR static boolean use_swr = FALSE; +#endif static struct pipe_screen * gdi_screen_create(void) -- 2.7.4