summaryrefslogtreecommitdiff
path: root/glamor/glamor_core.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-08-08 20:11:43 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:53 -0800
commitb8f0a2188295f6cc2c997b6639b6928323eae617 (patch)
tree2e3770f88300e9c134b0dc4c6b75b04bd203be45 /glamor/glamor_core.c
parent50614451adafc816ae5ffbe9c2a97a58f493b927 (diff)
Silence compilation warnings.
After increase to gcc4.7, it reports more warnings, now fix them. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Junyan He<junyan.he@linux.intel.com>
Diffstat (limited to 'glamor/glamor_core.c')
-rw-r--r--glamor/glamor_core.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c
index 8ba3347d1..22065bc64 100644
--- a/glamor/glamor_core.c
+++ b/glamor/glamor_core.c
@@ -566,15 +566,13 @@ glamor_bitmap_to_region(PixmapPtr pixmap)
/* Borrow from cairo. */
Bool
-glamor_gl_has_extension(char *extension)
+glamor_gl_has_extension(const char *extension)
{
- const char *gl_extensions;
- char *pext;
+ const char *pext;
int ext_len;
ext_len = strlen(extension);
- gl_extensions = (const char *) glGetString(GL_EXTENSIONS);
- pext = (char *) gl_extensions;
+ pext = (const char*)glGetString(GL_EXTENSIONS);
if (pext == NULL || extension == NULL)
return FALSE;