From 519385f8fc90ef3f8d178b799b6db0b860d5d0d3 Mon Sep 17 00:00:00 2001 From: todd Date: Wed, 5 Nov 2008 07:04:31 +0000 Subject: [PATCH] more gcc2 fixes courtesy sparc --- xserver/hw/xfree86/dri/xf86dri.c | 2 +- xserver/hw/xfree86/shadowfb/shadow.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xserver/hw/xfree86/dri/xf86dri.c b/xserver/hw/xfree86/dri/xf86dri.c index ea11b38ee..5fc560fc0 100644 --- a/xserver/hw/xfree86/dri/xf86dri.c +++ b/xserver/hw/xfree86/dri/xf86dri.c @@ -406,10 +406,10 @@ ProcXF86DRIDestroyDrawable( register ClientPtr client ) { + int rc; REQUEST(xXF86DRIDestroyDrawableReq); DrawablePtr pDrawable; REQUEST_SIZE_MATCH(xXF86DRIDestroyDrawableReq); - int rc; if (stuff->screen >= screenInfo.numScreens) { client->errorValue = stuff->screen; diff --git a/xserver/hw/xfree86/shadowfb/shadow.c b/xserver/hw/xfree86/shadowfb/shadow.c index 74beefb67..6c904a713 100644 --- a/xserver/hw/xfree86/shadowfb/shadow.c +++ b/xserver/hw/xfree86/shadowfb/shadow.c @@ -117,9 +117,9 @@ static DevPrivateKey ShadowGCKey = &ShadowGCKey; } #define SHADOW_GC_OP_PROLOGUE(pGC)\ + GCFuncs *oldFuncs = pGC->funcs;\ ShadowScreenPtr pPriv = GET_SCREEN_PRIVATE(pGC->pScreen); \ ShadowGCPtr pGCPriv = GET_GC_PRIVATE(pGC);\ - GCFuncs *oldFuncs = pGC->funcs;\ pGC->funcs = pGCPriv->funcs;\ pGC->ops = pGCPriv->ops @@ -432,10 +432,10 @@ extern GCOps ShadowGCOps; static Bool ShadowCreateGC(GCPtr pGC) { + Bool ret; ScreenPtr pScreen = pGC->pScreen; ShadowScreenPtr pPriv = GET_SCREEN_PRIVATE(pScreen); ShadowGCPtr pGCPriv = GET_GC_PRIVATE(pGC); - Bool ret; pScreen->CreateGC = pPriv->CreateGC; if((ret = (*pScreen->CreateGC) (pGC))) {