From 30a5178204fb1cc6a464b102df430c72f0a7ecb2 Mon Sep 17 00:00:00 2001 From: Pascal Nowack Date: Fri, 2 Jun 2023 10:41:43 +0200 Subject: [PATCH] clutter/clutter-stage: Get rid of an unused variable warning When building mutter with -Ddebug=false, a warning appears, that `ClutterStagePrivate *priv` is unused. Simply remove this variable and directly use `stage->priv` in `CLUTTER_NOTE` to get rid of this warning. Part-of: --- clutter/clutter/clutter-stage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index f17f331f1..b6237b1dc 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -3878,7 +3878,6 @@ clutter_stage_notify_grab_on_pointer_entry (ClutterStage *stage, ClutterActor *grab_actor, ClutterActor *old_grab_actor) { - ClutterStagePrivate *priv = stage->priv; gboolean pointer_in_grab, pointer_in_old_grab; gboolean implicit_grab_cancelled = FALSE; ClutterEventType event_type = CLUTTER_NOTHING; @@ -3947,7 +3946,7 @@ clutter_stage_notify_grab_on_pointer_entry (ClutterStage *stage, CLUTTER_NOTE (GRABS, "[grab=%p device=%p sequence=%p implicit_grab_cancelled=%d] " "Cancelled %u actors and actions on implicit grab due to new seat grab", - priv->topmost_grab, device, sequence, implicit_grab_cancelled, + stage->priv->topmost_grab, device, sequence, implicit_grab_cancelled, n_removed); } }