[cairo-commit] src/cairo-png.c
Chris Wilson
ickle at kemper.freedesktop.org
Fri Apr 20 09:49:13 PDT 2007
src/cairo-png.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
New commits:
diff-tree b6be361d0ef3b81ef5cbc28852f323a671e3d030 (from fc455c53ecb0aa496915b1eae68dc0275af78e09)
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Apr 20 17:49:10 2007 +0100
Clean up compiler warnings from cairo-png
I introduced some compiler warnings into read_png() with the superfluous
introduction of a couple of volatile qualifiers. I'm sure at the time,
the reason was that gcc suggested adding them - however, ATM gcc issues
no warnings without them.
diff --git a/src/cairo-png.c b/src/cairo-png.c
index a6b2e74..7422622 100644
--- a/src/cairo-png.c
+++ b/src/cairo-png.c
@@ -340,8 +340,8 @@ read_png (png_rw_ptr read_func,
cairo_surface_t *surface = (cairo_surface_t*) &_cairo_surface_nil;
png_struct *png = NULL;
png_info *info;
- volatile png_byte *data = NULL;
- volatile png_byte **row_pointers = NULL;
+ png_byte *data = NULL;
+ png_byte **row_pointers = NULL;
png_uint_32 png_width, png_height, stride;
int depth, color_type, interlace;
unsigned int i;
More information about the cairo-commit
mailing list