[mutter] clutter: Fix a compiler warning



commit 0745734ba590fb8d8493c4faf502bcfd92103f21
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jul 20 11:11:56 2016 +0200

    clutter: Fix a compiler warning
    
    There's no need for a cast for printing an object's type or address,
    so we can remove variables that are unused when not building with
    CLUTTER_ENABLE_DEBUG.

 clutter/clutter/cogl/clutter-stage-cogl.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index d9c1c91..58979f1 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -78,9 +78,7 @@ enum {
 static void
 clutter_stage_cogl_unrealize (ClutterStageWindow *stage_window)
 {
-  ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_window);
-
-  CLUTTER_NOTE (BACKEND, "Unrealizing Cogl stage [%p]", stage_cogl);
+  CLUTTER_NOTE (BACKEND, "Unrealizing Cogl stage [%p]", stage_window);
 }
 
 void
@@ -127,12 +125,11 @@ _clutter_stage_cogl_presented (ClutterStageCogl *stage_cogl,
 static gboolean
 clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
 {
-  ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_window);
   ClutterBackend *backend;
 
   CLUTTER_NOTE (BACKEND, "Realizing stage '%s' [%p]",
-                G_OBJECT_TYPE_NAME (stage_cogl),
-                stage_cogl);
+                G_OBJECT_TYPE_NAME (stage_window),
+                stage_window);
 
   backend = clutter_get_default_backend ();
 


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