[Mesa-dev] [PATCH 2/2] st/xa: silence unused variable warning

Brian Paul brianp at vmware.com
Thu Sep 18 09:22:48 PDT 2014


---
 src/gallium/state_trackers/xa/xa_tracker.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/state_trackers/xa/xa_tracker.c b/src/gallium/state_trackers/xa/xa_tracker.c
index 268d56b..f69ac8e 100644
--- a/src/gallium/state_trackers/xa/xa_tracker.c
+++ b/src/gallium/state_trackers/xa/xa_tracker.c
@@ -148,6 +148,7 @@ xa_tracker_create(int drm_fd)
 
 #if GALLIUM_STATIC_TARGETS
     xa->screen = dd_create_screen(drm_fd);
+    (void) loader_fd; /* silence unused var warning */
 #else
     loader_fd = dup(drm_fd);
     if (loader_fd == -1)
-- 
1.7.10.4



More information about the mesa-dev mailing list