[cairo] pixman compile warning

Jason Dorje Short jdorje at users.sf.net
Fri Aug 12 23:05:14 PDT 2005


ic.c:97: warning: '_cairo_pixman_in24' defined but not used

But why is this function not used when all the other operators (e.g., 
over) seem to have 24-bit variants?

-jason
-------------- next part --------------
Index: pixman/src/ic.c
===================================================================
RCS file: /cvs/cairo/cairo/pixman/src/ic.c,v
retrieving revision 1.34
diff -p -u -r1.34 ic.c
--- pixman/src/ic.c	11 Aug 2005 04:10:13 -0000	1.34
+++ pixman/src/ic.c	13 Aug 2005 06:04:38 -0000
@@ -92,6 +92,7 @@ fbIn (CARD32 x, CARD8 y)
     return m|n|o|p;
 }
 
+#if 0 /* unused - why? */
 static CARD32
 fbIn24 (CARD32 x, CARD8 y)
 {
@@ -105,6 +106,7 @@ fbIn24 (CARD32 x, CARD8 y)
     p = (y << 24);
     return m|n|o|p;
 }
+#endif
 
 #define genericCombine24(a,b,c,d) (((a)*(c)+(b)*(d)))
 


More information about the cairo mailing list