Cast away the const on the nil surface to avoid a compiler warning.

This commit is contained in:
Billy Biggs 2005-07-31 11:03:35 +00:00
parent 31e0d69429
commit b4ae3371b3
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-07-31 Billy Biggs <vektor@dumbterm.net>
* src/cairo-quartz-surface.c: (cairo_quartz_surface_create):
Cast away the const on the nil surface to avoid a compiler warning.
2005-07-31 Billy Biggs <vektor@dumbterm.net>
* src/cairo-atsui-font.c: (_cairo_atsui_font_create): Pass the

View file

@ -234,7 +234,7 @@ cairo_surface_t *cairo_quartz_surface_create(CGContextRef context,
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);