File mozilla-cairo-return.patch of Package seamonkey.import5122

# HG changeset patch
# User Wolfgang Rosenauer <wr@rosenauer.org>
# Parent e36e1a20cb5e1ba0e4bc3facac58029544d92e0a
Bug 631155 - undefined return value in function '_cairo_surface_wrapper_flush'

diff --git a/gfx/cairo/cairo/src/cairo-surface-wrapper.c b/gfx/cairo/cairo/src/cairo-surface-wrapper.c
--- a/gfx/cairo/cairo/src/cairo-surface-wrapper.c
+++ b/gfx/cairo/cairo/src/cairo-surface-wrapper.c
@@ -526,9 +526,12 @@ _cairo_surface_wrapper_fini (cairo_surfa
 }
 
 cairo_status_t
 _cairo_surface_wrapper_flush (cairo_surface_wrapper_t *wrapper)
 {
     if (wrapper->target->backend->flush) {
 	return wrapper->target->backend->flush(wrapper->target);
     }
+
+    // this is preliminary to cool down gcc and build checks
+    return CAIRO_STATUS_SUCCESS;
 }
openSUSE Build Service is sponsored by