Mesa (master): libgl-gdi: Fix unused-variable warnings.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 15 23:57:58 UTC 2020


Module: Mesa
Branch: master
Commit: 782016ea42bba3a3e3c5f116bd6b3b6c5f314d53
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=782016ea42bba3a3e3c5f116bd6b3b6c5f314d53

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sun Aug 30 17:22:17 2020 -0700

libgl-gdi: Fix unused-variable warnings.

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 <vlee at freedesktop.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6508>

---

 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 fd7b0aee3ef..59094ec1aa1 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)



More information about the mesa-commit mailing list