xf86-video-intel: src/sna/sna_dri2.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Aug 19 07:21:22 PDT 2015


 src/sna/sna_dri2.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 8c59c5ba4e368af2ee4a4a811ebf3934de7e4402
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Aug 19 15:20:37 2015 +0100

    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 <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 7a43301..e627902 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);


More information about the xorg-commit mailing list