From b9a2566a6e2f56a0335cd4a089b2066c06a67455 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 3 Apr 2013 16:50:38 +0100 Subject: [PATCH] hw/xwin: Fix unused-but-set-variable warning in winFinishScreenInitFB() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /jhbuild/checkout/xorg/xserver/hw/xwin/winscrinit.c:264:11: error: variable ‘pbits’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winscrinit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hw/xwin/winscrinit.c b/hw/xwin/winscrinit.c index e776bdba6..5623b8881 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -259,7 +259,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv) winScreenPriv(pScreen); winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; VisualPtr pVisual = NULL; - char *pbits = NULL; #if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW) int iReturn; @@ -293,9 +292,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv) return FALSE; } - /* Setup a local variable to point to the framebuffer */ - pbits = pScreenInfo->pfb; - /* Apparently we need this for the render extension */ miSetPixmapDepths();