diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-10-05 10:36:38 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-11-26 10:02:16 +0000 |
commit | b6a97499c71af60a3f15d131d51eb53fb21b48ff (patch) | |
tree | e7bf6e376ecc06a2d8876ed7eaef553f8e4d0dbb | |
parent | e71588c80d5c6112fa9f7c6ea369d90f9284199f (diff) |
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.
-rw-r--r-- | src/cairo-xcb-surface.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c index 9c2d3a7f2..d852f509f 100644 --- a/src/cairo-xcb-surface.c +++ b/src/cairo-xcb-surface.c @@ -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 |