From 43cabf3f7c84e00d8480136d2ed5108d84ca392b Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 8 Aug 2012 20:11:43 +0800 Subject: Silence compilation warnings. After increase to gcc4.7, it reports more warnings, now fix them. Signed-off-by: Zhigang Gong Tested-by: Junyan He --- src/glamor_egl.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/glamor_egl.c') diff --git a/src/glamor_egl.c b/src/glamor_egl.c index a9a92a7..a248aa2 100644 --- a/src/glamor_egl.c +++ b/src/glamor_egl.c @@ -335,8 +335,6 @@ _glamor_egl_destroy_pixmap_image(PixmapPtr pixmap) } } -extern void glamor_pixmap_exchange_fbos(PixmapPtr front, PixmapPtr back); - _X_EXPORT void glamor_egl_exchange_buffers(PixmapPtr front, PixmapPtr back) { @@ -399,16 +397,13 @@ static Bool glamor_egl_has_extension(struct glamor_egl_screen_private *glamor_egl, const char *extension) { - const char *egl_extensions; - char *pext; + const char *pext; int ext_len; - ext_len = strlen(extension); - egl_extensions = + ext_len = strlen(extension); + pext = (const char *) eglQueryString(glamor_egl->display, EGL_EXTENSIONS); - pext = (char *) egl_extensions; - if (pext == NULL || extension == NULL) return FALSE; while ((pext = strstr(pext, extension)) != NULL) { -- cgit v1.2.3