fixed compiler warnings in Xprint/ps/PsPixmap.c

This commit is contained in:
Greg Kroah-Hartman 2006-06-08 11:04:40 -07:00
parent aef092e029
commit 2dc291384c
2 changed files with 5 additions and 1 deletions

View File

@ -569,6 +569,7 @@ extern PixmapPtr PsCreatePixmap(ScreenPtr pScreen, int width, int height,
extern void PsScrubPixmap(PixmapPtr pPixmap);
extern Bool PsDestroyPixmap(PixmapPtr pPixmap);
extern DisplayListPtr PsGetFreeDisplayBlock(PsPixmapPrivPtr priv);
extern void PsReplay(DisplayElmPtr elm, DrawablePtr pDrawable);
extern void PsReplayPixmap(PixmapPtr pix, DrawablePtr pDrawable);
extern int PsCloneDisplayElm(PixmapPtr dst,
DisplayElmPtr elm, DisplayElmPtr newElm,

View File

@ -191,7 +191,6 @@ Bool
PsDestroyPixmap(PixmapPtr pPixmap)
{
PsPixmapPrivPtr priv = (PsPixmapPrivPtr)pPixmap->devPrivate.ptr;
DisplayListPtr disp = priv->dispList;
if( --pPixmap->refcnt ) return TRUE;
@ -512,6 +511,8 @@ PsCreateFillElementList(PixmapPtr pix, int *nElms)
case PolyFillArcCmd:
*nElms += elm->c.arcs.nArcs;
break;
default: /* keep the compiler happy with unhandled enums */
break;
}
}
}
@ -574,6 +575,8 @@ PsCreateFillElementList(PixmapPtr pix, int *nElms)
*nElms += 1;
}
break;
default: /* keep the compiler happy with unhandled enums */
break;
}
}
}