Trivial warning fixes.

Cleanup a few compiler warnings about unused variables and mismatching
pointer types.
This commit is contained in:
Chris Wilson 2009-01-30 21:54:56 +00:00
parent f10eaadf89
commit 7375f4c76b
2 changed files with 2 additions and 3 deletions

View file

@ -966,7 +966,6 @@ _cairo_bo_event_queue_init (cairo_bo_event_queue_t *event_queue,
int i;
cairo_bo_event_t *events, **sorted_event_ptrs;
unsigned num_events = 2*num_edges;
cairo_status_t status;
/* The skip_elt_t field of a cairo_bo_event_t isn't used for start
* or stop events, so this allocation is safe. XXX: make the

View file

@ -2443,8 +2443,8 @@ static void
_cairo_ps_surface_release_surface (cairo_ps_surface_t *surface,
cairo_surface_pattern_t *pattern)
{
if (surface->image != &surface->acquired_image->base)
cairo_surface_destroy (surface->image);
if (surface->image != surface->acquired_image)
cairo_surface_destroy (&surface->image->base);
if (! _cairo_surface_is_meta (pattern->surface)) {
_cairo_surface_release_source_image (pattern->surface,