Commit d591c7d1 authored by Maarten Maathuis's avatar Maarten Maathuis

mi: kill a few warnings

parent 00226d0b
......@@ -1884,7 +1884,7 @@ miComputeArcs (
int arcsJoin;
int selfJoin;
int iDash = 0, dashRemaining;
int iDash = 0, dashRemaining = 0;
int iDashStart = 0, dashRemainingStart = 0, iphaseStart;
int startAngle, spanAngle, endAngle, backwards = 0;
int prevDashAngle, dashAngle;
......
......@@ -120,7 +120,7 @@ extern _X_EXPORT void miSetZeroLineBias(
t = y1; y1 = y2; y2 = t;\
}
#define miGetZeroLineBias(_pScreen) ((unsigned long) \
#define miGetZeroLineBias(_pScreen) ((unsigned long) (unsigned long*)\
dixLookupPrivate(&(_pScreen)->devPrivates, miZeroLineScreenKey))
#define CalcLineDeltas(_x1,_y1,_x2,_y2,_adx,_ady,_sx,_sy,_SX,_SY,_octant) \
......
......@@ -308,5 +308,6 @@ DevPrivateKey miZeroLineScreenKey = &miZeroLineScreenKeyIndex;
void
miSetZeroLineBias(ScreenPtr pScreen, unsigned int bias)
{
dixSetPrivate(&pScreen->devPrivates, miZeroLineScreenKey, (pointer)bias);
dixSetPrivate(&pScreen->devPrivates, miZeroLineScreenKey,
(unsigned long *)(unsigned long)bias);
}
......@@ -709,7 +709,7 @@ miZeroPolyArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc *parcs)
int n, maxw = 0;
xArc *arc;
int i;
DDXPointPtr points, pts, oddPts;
DDXPointPtr points, pts, oddPts = NULL;
DDXPointPtr pt;
int numPts;
Bool dospans;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment