[cogl/wip/wayland-compositor: 15/18] cogl-xlib: fix mixed declarations warning



commit 48a0f7ee7282b4cc660c35cde5231589727bd592
Author: Robert Bragg <robert linux intel com>
Date:   Wed May 25 18:58:34 2011 +0100

    cogl-xlib: fix mixed declarations warning

 cogl/cogl-xlib.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-xlib.c b/cogl/cogl-xlib.c
index 018d11a..c648216 100644
--- a/cogl/cogl-xlib.c
+++ b/cogl/cogl-xlib.c
@@ -133,8 +133,9 @@ _cogl_xlib_query_damage_extension (void)
 int
 _cogl_xlib_get_damage_base (void)
 {
+  CoglRendererX11 *x11_renderer;
   _COGL_GET_CONTEXT (ctxt, -1);
 
-  CoglRendererX11 *x11_renderer = ctxt->display->renderer->winsys;
+  x11_renderer = ctxt->display->renderer->winsys;
   return x11_renderer->damage_base;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]