From b4ae3371b34ca67e98df5e73147adcd6b7853e1d Mon Sep 17 00:00:00 2001 From: Billy Biggs Date: Sun, 31 Jul 2005 11:03:35 +0000 Subject: [PATCH] Cast away the const on the nil surface to avoid a compiler warning. --- ChangeLog | 5 +++++ src/cairo-quartz-surface.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 33e6d89e4..3aeebf96f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-31 Billy Biggs + + * 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 * src/cairo-atsui-font.c: (_cairo_atsui_font_create): Pass the diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c index 0d847391f..70f408a3b 100644 --- a/src/cairo-quartz-surface.c +++ b/src/cairo-quartz-surface.c @@ -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);