Commit 95ec2544 authored by Paolo Bacchilega's avatar Paolo Bacchilega

Fixed 'variabile might be clobbered' warnings

parent a23f17e1
...@@ -182,7 +182,7 @@ _cairo_image_surface_create_from_jpeg (GInputStream *istream, ...@@ -182,7 +182,7 @@ _cairo_image_surface_create_from_jpeg (GInputStream *istream,
guint32 pixel; guint32 pixel;
unsigned char *p_buffer; unsigned char *p_buffer;
int x; int x;
gboolean read_all_scanlines = FALSE; volatile gboolean read_all_scanlines = FALSE;
volatile gboolean finished = FALSE; volatile gboolean finished = FALSE;
image = gth_image_new (); image = gth_image_new ();
......
...@@ -237,7 +237,7 @@ _cairo_surface_write_as_jpeg (cairo_surface_t *image, ...@@ -237,7 +237,7 @@ _cairo_surface_write_as_jpeg (cairo_surface_t *image,
struct jpeg_compress_struct cinfo; struct jpeg_compress_struct cinfo;
struct error_handler_data jerr; struct error_handler_data jerr;
guchar *buf = NULL; guchar *buf = NULL;
guchar *pixels = NULL; guchar *pixels;
volatile int quality = 85; /* default; must be between 0 and 100 */ volatile int quality = 85; /* default; must be between 0 and 100 */
volatile int smoothing = 0; volatile int smoothing = 0;
volatile gboolean optimize = FALSE; volatile gboolean optimize = FALSE;
......
...@@ -165,7 +165,7 @@ _cairo_surface_write_as_png (cairo_surface_t *image, ...@@ -165,7 +165,7 @@ _cairo_surface_write_as_png (cairo_surface_t *image,
char **values, char **values,
GError **error) GError **error)
{ {
int compression_level; volatile int compression_level;
int width, height; int width, height;
gboolean alpha; gboolean alpha;
guchar *pixels, *ptr, *buf; guchar *pixels, *ptr, *buf;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment