[Xr] thrashing bug

Amaury Jacquot sxpert at esitcom.org
Mon Apr 28 02:19:18 PDT 2003


On Mon, 2003-04-28 at 09:07, Amaury Jacquot wrote:
> I'm unable to rebuild Xc for some reason :
> 
> /bin/sh ../libtool --mode=link gcc  -g -O2   -o libXc.la -rpath /usr/lib
> -version-info 1:0:0 xc.lo xcsurface.lo -lic -lpixregion

My bad... unable to install libpixregion properly ;-)
I have a patch for Xc (see attachment)


-------------- next part --------------
? .cvsignore
? autom4te.cache
? stamp-h1
Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/Xc/ChangeLog,v
retrieving revision 1.5
diff -u -r1.5 ChangeLog
--- ChangeLog	25 Apr 2003 20:24:35 -0000	1.5
+++ ChangeLog	28 Apr 2003 09:14:18 -0000
@@ -1,3 +1,7 @@
+2003-04-28  Amaury Jacquot  <sxpert at esitcom.org>
+	
+	* src/xc.c: added casts to remove warnings
+
 2003-04-25  Carl Worth  <cworth at east.isi.edu>
 
 	* configure.in: Fixed libtool versioning.
Index: src/xc.c
===================================================================
RCS file: /local/src/CVS/Xc/src/xc.c,v
retrieving revision 1.6
diff -u -r1.6 xc.c
--- src/xc.c	17 Apr 2003 15:55:43 -0000	1.6
+++ src/xc.c	28 Apr 2003 09:14:18 -0000
@@ -118,7 +118,7 @@
 
 	/* XXX: This cast should only occur with a #define hint from libic that it is OK */
 	IcFillRectangles (op, dst->icimage,
-			  (IcColor *) color, rects, nrects);
+			  (IcColor *) color,(IcRectangle*) rects, nrects);
 
 	_XcSurfacePushImage (dst);
     }
@@ -145,7 +145,7 @@
 	_XcSurfacePullImage (dst);
 
 	IcCompositeTrapezoids (op, src->icimage, dst->icimage,
-			       xSrc, ySrc, traps, ntraps);
+			       xSrc, ySrc, (IcTrapezoid*)traps, ntraps);
 
 	_XcSurfacePushImage (dst);
     }
@@ -172,7 +172,7 @@
 	_XcSurfacePullImage (dst);
 
 	IcCompositeTriangles (op, src->icimage, dst->icimage,
-			      xSrc, ySrc, tris, ntris);
+			      xSrc, ySrc, (IcTriangle*)tris, ntris);
 
 	_XcSurfacePushImage (dst);
     }


More information about the cairo mailing list