From 9840321501f10711fdd2e0e8e96b6934a75880c9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 12 Apr 2011 20:35:31 +0100 Subject: [PATCH] Silence the compiler by removing unused variables --- cogl/winsys/cogl-winsys-glx.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cogl/winsys/cogl-winsys-glx.c b/cogl/winsys/cogl-winsys-glx.c index 358ef33b5..b4f494df5 100644 --- a/cogl/winsys/cogl-winsys-glx.c +++ b/cogl/winsys/cogl-winsys-glx.c @@ -611,7 +611,6 @@ _cogl_winsys_display_setup (CoglDisplay *display, GError **error) { CoglDisplayGLX *glx_display; - CoglDisplayXlib *xlib_display; int i; g_return_val_if_fail (display->winsys == NULL, FALSE); @@ -619,8 +618,6 @@ _cogl_winsys_display_setup (CoglDisplay *display, glx_display = g_slice_new0 (CoglDisplayGLX); display->winsys = glx_display; - xlib_display = display->winsys; - if (!create_context (display, error)) goto error; @@ -989,12 +986,10 @@ drm_wait_vblank (int fd, drm_wait_vblank_t *vbl) void _cogl_winsys_wait_for_vblank (void) { - CoglDisplayGLX *glx_display; CoglRendererGLX *glx_renderer; _COGL_GET_CONTEXT (ctx, NO_RETVAL); - glx_display = ctx->display->winsys; glx_renderer = ctx->display->renderer->winsys; if (glx_renderer->pf_glXGetVideoSync) @@ -1033,7 +1028,7 @@ _cogl_winsys_onscreen_swap_region (CoglOnscreen *onscreen, CoglOnscreenGLX *glx_onscreen = onscreen->winsys; GLXDrawable drawable = glx_onscreen->glxwin ? glx_onscreen->glxwin : xlib_onscreen->xwin; - guint32 end_frame_vsync_counter; + guint32 end_frame_vsync_counter = 0; gboolean have_counter; gboolean can_wait; @@ -1321,7 +1316,6 @@ _cogl_winsys_has_feature (CoglWinsysFeature feature) XVisualInfo * _cogl_winsys_xlib_get_visual_info (void) { - CoglDisplayXlib *xlib_display; CoglDisplayGLX *glx_display; CoglRendererXlib *xlib_renderer; @@ -1329,7 +1323,6 @@ _cogl_winsys_xlib_get_visual_info (void) g_return_val_if_fail (ctx->display->winsys, FALSE); - xlib_display = ctx->display->winsys; glx_display = ctx->display->winsys; xlib_renderer = ctx->display->renderer->winsys;