Bug 631155 - undefined return value in function '_cairo_surface_wrapper_flush'; r=jrmuizel

This commit is contained in:
Ed Morley 2011-07-11 09:14:12 -04:00
Родитель bbcadd9496
Коммит 380667f6fa
3 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -166,6 +166,8 @@ fix-cairo-win32-print-gdi-error.diff: Don't use fwprintf with char* format. Flu
pixman-image-transform.patch: Reset the transform on pixman images when using them as destinations.
fix-cairo-surface-wrapper-flush-build-warning.patch: Ensures that _cairo_surface_wrapper_flush always returns a status, to silence the build warning
==== pixman patches ====
pixman-android-cpu-detect.patch: Add CPU detection support for Android, where we can't reliably access /proc/self/auxv.

Просмотреть файл

@ -717,4 +717,5 @@ _cairo_surface_wrapper_flush (cairo_surface_wrapper_t *wrapper)
if (wrapper->target->backend->flush) {
return wrapper->target->backend->flush(wrapper->target);
}
return CAIRO_STATUS_SUCCESS;
}

Просмотреть файл

@ -0,0 +1,19 @@
# HG changeset patch
# Parent 5479a346b95b82162c72419a95cbb4022cbbfe4d
# User Ed Morley <bmo@edmorley.co.uk>
Bug 631155 - undefined return value in function '_cairo_surface_wrapper_flush'; r=jrmuizel
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
@@ -712,9 +712,10 @@ _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);
}
+ return CAIRO_STATUS_SUCCESS;
}