summaryrefslogtreecommitdiff
path: root/source/fitz/pixmap.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-09-13 15:47:58 +0100
committerRobin Watts <robin.watts@artifex.com>2013-09-13 16:02:32 +0100
commitaefe6a511b3cb901034e5995fd882e334e40f2bb (patch)
tree74005b19d77e704480b2c7c43c3ed51c15b17dcf /source/fitz/pixmap.c
parenta0a92b5cf0fa076c923e7a5aa911dfff28aea351 (diff)
downloadmupdf-aefe6a511b3cb901034e5995fd882e334e40f2bb.tar.xz
Fix various compile warnings spotted by the cluster.
Diffstat (limited to 'source/fitz/pixmap.c')
-rw-r--r--source/fitz/pixmap.c9
1 files changed, 3 insertions, 6 deletions
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;