From aefe6a511b3cb901034e5995fd882e334e40f2bb Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 13 Sep 2013 15:47:58 +0100 Subject: Fix various compile warnings spotted by the cluster. --- source/fitz/pixmap.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source/fitz/pixmap.c') diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c index 2cc6a98c..8b3ac6a6 100644 --- a/source/fitz/pixmap.c +++ b/source/fitz/pixmap.c @@ -648,7 +648,6 @@ fz_output_png_header(fz_output *out, int w, int h, int n, int savealpha) unsigned char head[13]; fz_context *ctx; int color; - int sn, dn; fz_png_output_context *poc; if (!out) @@ -661,12 +660,10 @@ fz_output_png_header(fz_output *out, int w, int h, int n, int savealpha) poc = fz_malloc_struct(ctx, fz_png_output_context); - sn = n; - dn = n; - if (!savealpha && dn > 1) - dn--; + if (!savealpha && n > 1) + n--; - switch (dn) + switch (n) { default: case 1: color = 0; break; -- cgit v1.2.3