summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-03-22 01:32:52 +0000
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-04-17 19:26:23 -0300
commitd748dc273fe289d318e14e1074bc4fe545244594 (patch)
tree938e85237b3cd32417e0a83d5d6424f88a4f8c38
parenta9b642540cd6fc0de938ab388ae0fec0e2001e2e (diff)
downloadmutter-gbsneto/charts.tar.gz
clutter/stage: Cast the stage just when neededgbsneto/charts
If we use a variable, and the debug notes are disabled at compile time, the variable becomes unused and we are warned. Remove this variable and instead cast inline. https://gitlab.gnome.org/GNOME/mutter/merge_requests/502
-rw-r--r--clutter/clutter/clutter-stage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 2eda55595..3f069d980 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -1114,7 +1114,6 @@ _clutter_stage_maybe_relayout (ClutterActor *actor)
static void
clutter_stage_do_redraw (ClutterStage *stage)
{
- ClutterActor *actor = CLUTTER_ACTOR (stage);
ClutterStagePrivate *priv = stage->priv;
int64_t start;
int64_t end;
@@ -1126,7 +1125,7 @@ clutter_stage_do_redraw (ClutterStage *stage)
return;
CLUTTER_NOTE (PAINT, "Redraw started for stage '%s'[%p]",
- _clutter_actor_get_debug_name (actor),
+ _clutter_actor_get_debug_name (CLUTTER_ACTOR (stage)),
stage);
start = g_get_monotonic_time ();
@@ -1139,7 +1138,7 @@ clutter_stage_do_redraw (ClutterStage *stage)
CLUTTER_NOTE (FRAME_TIME, "PAINT: %lf", priv->last_paint_time);
CLUTTER_NOTE (PAINT, "Redraw finished for stage '%s'[%p]",
- _clutter_actor_get_debug_name (actor),
+ _clutter_actor_get_debug_name (CLUTTER_ACTOR (stage)),
stage);
}