diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-08 11:04:40 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-08 11:04:40 -0700 |
commit | 2dc291384c550badf55542ae645240e166676848 (patch) | |
tree | a0d33508c6ca0bd96af29345bb5d6fb3f9cb33b7 | |
parent | aef092e0290143c2b8b1cb98fdf55c9630032aaf (diff) |
fixed compiler warnings in Xprint/ps/PsPixmap.c
-rw-r--r-- | Xprint/ps/Ps.h | 1 | ||||
-rw-r--r-- | Xprint/ps/PsPixmap.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Xprint/ps/Ps.h b/Xprint/ps/Ps.h index 781161d8a..576c3b24e 100644 --- a/Xprint/ps/Ps.h +++ b/Xprint/ps/Ps.h @@ -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, diff --git a/Xprint/ps/PsPixmap.c b/Xprint/ps/PsPixmap.c index a698b375e..f2d05d023 100644 --- a/Xprint/ps/PsPixmap.c +++ b/Xprint/ps/PsPixmap.c @@ -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; } } } |