mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 05:00:17 +01:00
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:
parent
1310df44ed
commit
d703f964aa
2 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue