Clean up compile warnings.

A couple of unchecked status returns (which should always be
CAIRO_STATUS_SUCCESS) and an unused variable.
This commit is contained in:
Chris Wilson 2008-09-29 16:37:35 +01:00
parent 1310df44ed
commit d703f964aa
2 changed files with 6 additions and 3 deletions

View file

@ -812,7 +812,9 @@ _cairo_surface_set_device_scale (cairo_surface_t *surface,
surface->device_transform.yx = 0.0;
surface->device_transform_inverse = surface->device_transform;
cairo_matrix_invert (&surface->device_transform_inverse);
status = cairo_matrix_invert (&surface->device_transform_inverse);
/* should always be invertible unless given pathological input */
assert (status == CAIRO_STATUS_SUCCESS);
}
/**
@ -854,7 +856,9 @@ cairo_surface_set_device_offset (cairo_surface_t *surface,
surface->device_transform.y0 = y_offset;
surface->device_transform_inverse = surface->device_transform;
cairo_matrix_invert (&surface->device_transform_inverse);
status = cairo_matrix_invert (&surface->device_transform_inverse);
/* should always be invertible unless given pathological input */
assert (status == CAIRO_STATUS_SUCCESS);
}
slim_hidden_def (cairo_surface_set_device_offset);

View file

@ -1033,7 +1033,6 @@ _cairo_svg_surface_emit_composite_image_pattern (cairo_output_stream_t *output
const cairo_matrix_t *parent_matrix,
const char *extra_attributes)
{
cairo_surface_attributes_t surface_attr;
cairo_rectangle_int_t extents;
cairo_status_t status;
cairo_matrix_t p2u;