[cairo-commit] src/cairo-pdf-surface.c

Jeff Muizelaar jrmuizel at kemper.freedesktop.org
Tue Mar 3 09:26:16 PST 2009


 src/cairo-pdf-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit addeb32c751ac080fe634ea6f83076d018944e4a
Author: Jeff Muizelaar <jmuizelaar at mozilla.com>
Date:   Tue Mar 3 12:20:47 2009 -0500

    [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.

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index a901274..f562e3f 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


More information about the cairo-commit mailing list