summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorYuanhan Liu <yuanhan.liu@linux.intel.com>2012-03-28 10:09:55 +0800
committerYuanhan Liu <yuanhan.liu@linux.intel.com>2012-04-09 09:59:10 +0800
commit8b5b3b93d73d80a54d12d0d7a6a74fb97b27bf8a (patch)
tree12db635fed51d92fd23dbb608a8e4cc800b189b4 /src/glx
parent7bb1c784a30124a7259a2cc30356f7d88d27a767 (diff)
glx: fix compile warnings
Fix 'set but not used' warnings; gl_version, gl_versions_profiles and glx_extensions variables are used just only HAVE_XCB_GLX_CREATE_CONTEXT is defined. Thus those warnings are shown when that macro isn't defined. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/clientinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/clientinfo.c b/src/glx/clientinfo.c
index 461030fce88..97d43cea0e3 100644
--- a/src/glx/clientinfo.c
+++ b/src/glx/clientinfo.c
@@ -39,6 +39,7 @@ __glX_send_client_info(struct glx_display *glx_dpy)
Bool any_screen_has_ARB_create_context = False;
Bool any_screen_has_ARB_create_context_profile = False;
unsigned i;
+#ifdef HAVE_XCB_GLX_CREATE_CONTEXT
static const uint32_t gl_versions[] = {
1, 4,
};
@@ -47,6 +48,7 @@ __glX_send_client_info(struct glx_display *glx_dpy)
};
static const char glx_extensions[] =
"GLX_ARB_create_context GLX_ARB_create_context_profile";
+#endif
/* There are three possible flavors of the client info structure that the
* client could send to the server. The version sent depends on the