From 8c59c5ba4e368af2ee4a4a811ebf3934de7e4402 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 19 Aug 2015 15:20:37 +0100 Subject: [PATCH] sna/dri2: Remove unused local variable in normal builds The local was only used in debug builds, so remove it to squash the compiler warning. Signed-off-by: Chris Wilson --- src/sna/sna_dri2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 7a433019..e6279026 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1578,9 +1578,7 @@ sna_dri2_remove_event(struct sna_dri2_event *info) static void sna_dri2_event_free(struct sna_dri2_event *info) { - DrawablePtr draw = info->draw; - - DBG(("%s(draw?=%d)\n", __FUNCTION__, draw != NULL)); + DBG(("%s(draw?=%d)\n", __FUNCTION__, info->draw != NULL)); assert(!info->queued); assert(!info->signal); assert(info->pending.bo == NULL);