summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-05-18 21:48:38 -0700
committerCarl Worth <cworth@cworth.org>2006-05-18 21:48:38 -0700
commit89384ae12474c257fb47e4231229235207ab8f85 (patch)
treee700da1b8405b86d68632dc827a4cc5d8a2dbd5b /src
parente2713057f80c412a3ba947f9c7af2f18dd26105e (diff)
PDF: Squelch a couple of bogus "may be used uninitialized" warnings.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-pdf-surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index a37a5404..ff7c3426 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -751,7 +751,7 @@ emit_image (cairo_pdf_surface_t *surface,
unsigned long rgb_size, compressed_size;
pixman_bits_t *pixel;
int i, x, y;
- cairo_pdf_resource_t smask;
+ cairo_pdf_resource_t smask = {0}; /* squelch bogus compiler warning */
cairo_bool_t need_smask;
/* XXX: Need to rewrite this as a pdf_surface function with
@@ -886,7 +886,7 @@ emit_surface_pattern (cairo_pdf_surface_t *surface,
cairo_image_surface_t *image;
void *image_extra;
cairo_status_t status = CAIRO_STATUS_SUCCESS;
- cairo_pdf_resource_t alpha, image_resource;
+ cairo_pdf_resource_t alpha, image_resource = {0}; /* squelch bogus compiler warning */
cairo_matrix_t cairo_p2d, pdf_p2d;
cairo_extend_t extend = cairo_pattern_get_extend (&pattern->base);
int xstep, ystep;