mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-08 23:18:32 +02:00
xcb: Do not return value in void function
Sun Studio Compiler complains: "cairo-xcb-surface.c", line 585: void function cannot return value even if the returned value is void. Some minor code restructuring removes the issue.
This commit is contained in:
parent
e71588c80d
commit
b6a97499c7
1 changed files with 4 additions and 6 deletions
|
|
@ -580,12 +580,10 @@ _cairo_xcb_surface_release_source_image (void *abstract_surface,
|
|||
{
|
||||
cairo_xcb_surface_t *surface = abstract_surface;
|
||||
|
||||
if (surface->drm != NULL && ! surface->marked_dirty) {
|
||||
return _cairo_surface_release_source_image (surface->drm,
|
||||
image, image_extra);
|
||||
}
|
||||
|
||||
cairo_surface_destroy (&image->base);
|
||||
if (surface->drm != NULL && !surface->marked_dirty)
|
||||
_cairo_surface_release_source_image (surface->drm, image, image_extra);
|
||||
else
|
||||
cairo_surface_destroy (&image->base);
|
||||
}
|
||||
|
||||
static cairo_bool_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue