mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 11:10:42 +02:00
Quiet some 'may be used uninitialized' warnings.
This commit is contained in:
parent
8a174a1139
commit
7beb3e27a5
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue