From addeb32c751ac080fe634ea6f83076d018944e4a Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Tue, 3 Mar 2009 12:20:47 -0500 Subject: [PATCH] [pdf] Intialize 'interpolate' Intialize 'interpolate' to prevent a gcc warning. Do this instead of adding a 'default' case to the switch statement so that we still get warnings if new filter types are added. --- src/cairo-pdf-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index a90127449..f562e3fd8 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -1543,7 +1543,7 @@ _cairo_pdf_surface_emit_image (cairo_pdf_surface_t *surface, int i, x, y; cairo_pdf_resource_t smask = {0}; /* squelch bogus compiler warning */ cairo_bool_t need_smask; - const char *interpolate; + const char *interpolate = "true"; /* These are the only image formats we currently support, (which * makes things a lot simpler here). This is enforced through