From 6f8aa9c90cccbd893323f5f1892958b7f46e400d Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sun, 23 Jan 2011 15:49:57 +0100 Subject: savage: Drop unused variables and functions Silence -Wall warnings. The functions are just #if'ed out, to be left for inspiration. --- src/savage_video.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/savage_video.c') diff --git a/src/savage_video.c b/src/savage_video.c index 86ae0cd..9f860c7 100644 --- a/src/savage_video.c +++ b/src/savage_video.c @@ -1038,7 +1038,6 @@ SavageStopVideo(ScrnInfoPtr pScrn, pointer data, Bool shutdown) { SavagePortPrivPtr pPriv = (SavagePortPrivPtr)data; SavagePtr psav = SAVPTR(pScrn); - ScreenPtr pScreen = screenInfo.screens[pScrn->scrnIndex]; xf86ErrorFVerb(XVTRACE,"SavageStopVideo\n"); @@ -1214,7 +1213,6 @@ SavageCopyPlanarDataBCI( unsigned long offsetV = offsetY + srcPitch * h; unsigned long offsetU = offsetV + srcPitch2 * (h>>1); unsigned long dstOffset = (unsigned long)dst - (unsigned long)psav->FBBase; - int i; unsigned char memType; BCI_GET_PTR; @@ -1975,7 +1973,6 @@ SavagePutImage( upload to framebuffer (slower) */ #ifdef XF86DRI if (!pPriv->tried_agp && !psav->IsPCI && psav->drmFD > 0 && psav->DRIServerInfo != NULL) { - int ret; SAVAGEDRIServerPrivatePtr pSAVAGEDRIServer = psav->DRIServerInfo; pPriv->tried_agp = TRUE; @@ -2335,7 +2332,7 @@ SavageDisplaySurface( surface->width, surface->height, surface->pitches[0], x1, y1, x2, y2, &dstBox, src_w, src_h, drw_w, drw_h); - xf86XVFillKeyHelper(pScrn->pScreen, portPriv->colorKey, clipBoxes); + xf86XVFillKeyHelper(pScreen, portPriv->colorKey, clipBoxes); pPriv->isOn = TRUE; #if 0 -- cgit v1.2.3