diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-08-08 20:11:43 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-12-18 11:23:53 -0800 |
commit | b8f0a2188295f6cc2c997b6639b6928323eae617 (patch) | |
tree | 2e3770f88300e9c134b0dc4c6b75b04bd203be45 /glamor/glamor_egl.c | |
parent | 50614451adafc816ae5ffbe9c2a97a58f493b927 (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_egl.c')
-rw-r--r-- | glamor/glamor_egl.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index a9a92a7f2..a248aa2e2 100644 --- a/glamor/glamor_egl.c +++ b/glamor/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) { |