summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cairo-lzw.c4
-rw-r--r--src/cairo-pdf-surface.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-lzw.c b/src/cairo-lzw.c
index 2a4a8e1e..1f48a0ae 100644
--- a/src/cairo-lzw.c
+++ b/src/cairo-lzw.c
@@ -324,10 +324,10 @@ _cairo_lzw_compress (unsigned char *data, unsigned long *size_in_out)
int bytes_remaining = *size_in_out;
lzw_buf_t buf;
lzw_symbol_table_t table;
- lzw_symbol_t symbol, *slot;
+ lzw_symbol_t symbol, *slot = NULL; /* just to squelch a warning */
int code_next = LZW_CODE_FIRST;
int code_bits = LZW_BITS_MIN;
- int prev, next;
+ int prev, next = 0; /* just to squelch a warning */
if (*size_in_out == 0)
return NULL;
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index d06e91a5..a08f50b2 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -744,7 +744,7 @@ emit_image (cairo_pdf_document_t *document,
unsigned long rgb_size, compressed_size;
pixman_bits_t *pixel;
int i, x, y;
- unsigned int smask_id;
+ unsigned int smask_id = 0; /* just to squelch a warning */
cairo_bool_t need_smask;
/* These are the only image formats we currently support, (which
@@ -882,7 +882,7 @@ emit_surface_pattern (cairo_pdf_surface_t *dst,
cairo_image_surface_t *image;
void *image_extra;
cairo_status_t status = CAIRO_STATUS_SUCCESS;
- unsigned int id, alpha;
+ unsigned int alpha, id = 0; /* just to squelch a warning */
cairo_matrix_t cairo_p2d, pdf_p2d;
cairo_extend_t extend = cairo_pattern_get_extend (&pattern->base);
int xstep, ystep;