File mozilla-cairo-return.patch of Package MozillaFirefox.import5239

# HG changeset patch
# User Wolfgang Rosenauer <wr@rosenauer.org>
# Parent 43cb27a012f2532add0e9791c1b5a7d0c3b03f9b
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;
 }