[cairo-commit] cairo/src cairo-quartz-surface.c,1.18,1.19

Billy Biggs commit at pdx.freedesktop.org
Sun Jul 31 11:03:38 PDT 2005


Committed by: vektor

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv20374/src

Modified Files:
	cairo-quartz-surface.c 
Log Message:

	* src/cairo-quartz-surface.c: (cairo_quartz_surface_create):
	Cast away the const on the nil surface to avoid a compiler warning.



Index: cairo-quartz-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-quartz-surface.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- cairo-quartz-surface.c	29 Jul 2005 22:31:48 -0000	1.18
+++ cairo-quartz-surface.c	31 Jul 2005 18:03:35 -0000	1.19
@@ -234,7 +234,7 @@
     surface = malloc(sizeof(cairo_quartz_surface_t));
     if (surface == NULL) {
 	_cairo_error (CAIRO_STATUS_NO_MEMORY);
-        return &_cairo_surface_nil;
+        return (cairo_surface_t*) &_cairo_surface_nil;
     }
 
     _cairo_surface_init(&surface->base, &cairo_quartz_surface_backend);




More information about the cairo-commit mailing list