fixed compiler warnings in Xprint/ps/PsPixmap.c
This commit is contained in:
parent
aef092e029
commit
2dc291384c
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user