[cairo-commit] src/cairo-png.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Aug 28 19:44:19 PDT 2006


 src/cairo-png.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 3252ad5ca630fe292babc061c01b8759ef49cde4 (from b6e5f2b0fef00352930dfcc47a13f330a13b1d68)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Aug 28 22:44:15 2006 -0400

    [PNG] Mark status volatile to fix gcc warning

diff --git a/src/cairo-png.c b/src/cairo-png.c
index 0ddfa62..3155cad 100644
--- a/src/cairo-png.c
+++ b/src/cairo-png.c
@@ -88,7 +88,7 @@ write_png (cairo_surface_t	*surface,
 	   void			*closure)
 {
     int i;
-    cairo_status_t status = CAIRO_STATUS_SUCCESS;
+    volatile cairo_status_t status = CAIRO_STATUS_SUCCESS;
     cairo_image_surface_t *image;
     void *image_extra;
     png_struct *png;


More information about the cairo-commit mailing list