mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-22 06:50:41 +01:00
Cast away the const on the nil surface to avoid a compiler warning.
This commit is contained in:
parent
31e0d69429
commit
b4ae3371b3
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue