From 9f9796920f5994090a19de357defe5e72ac61297 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 21 Jun 2013 20:38:43 +0200 Subject: xcb: Fix some uninitialized variable warnings Signed-off-by: Uli Schlachter --- src/cairo-xcb-surface-render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cairo-xcb-surface-render.c b/src/cairo-xcb-surface-render.c index 7ea9dc803..2d52be9cf 100644 --- a/src/cairo-xcb-surface-render.c +++ b/src/cairo-xcb-surface-render.c @@ -1952,7 +1952,7 @@ _clip_and_composite_combine (cairo_clip_t *clip, { cairo_xcb_surface_t *tmp; cairo_xcb_surface_t *clip_surface; - int clip_x, clip_y; + int clip_x = 0, clip_y = 0; xcb_render_picture_t clip_picture; cairo_status_t status; @@ -2248,7 +2248,7 @@ _cairo_xcb_surface_fixup_unbounded_with_mask (cairo_xcb_surface_t *dst, cairo_clip_t *clip) { cairo_xcb_surface_t *mask; - int mask_x, mask_y; + int mask_x = 0, mask_y = 0; mask = get_clip_surface (clip, dst, &mask_x, &mask_y); if (unlikely (mask->base.status)) @@ -2651,7 +2651,7 @@ _composite_boxes (cairo_xcb_surface_t *dst, if (need_clip_mask) { cairo_xcb_surface_t *clip_surface; - int clip_x, clip_y; + int clip_x = 0, clip_y = 0; clip_surface = get_clip_surface (extents->clip, dst, &clip_x, &clip_y); -- cgit v1.2.3