summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2013-03-21 22:03:12 +0000
committerRobin Watts <robin.watts@artifex.com>2013-03-22 01:06:10 +0000
commit7b334e226f7ac03352461935e7193d4c9a27ddca (patch)
treed4d768c49164a9c885c9f5d784c6a88cc99ae80b /fitz
parentbf08301ded2f44e33bebf5572587a9c7102dcc98 (diff)
downloadmupdf-7b334e226f7ac03352461935e7193d4c9a27ddca.tar.xz
Squash some warnings.
Some -Wshadow ones, plus some 'set but not used' ones.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/base_trans.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fitz/base_trans.c b/fitz/base_trans.c
index 96d93a0b..dcca6e15 100644
--- a/fitz/base_trans.c
+++ b/fitz/base_trans.c
@@ -25,12 +25,11 @@ static int
blind_horiz(fz_pixmap *tpix, fz_pixmap *opix, fz_pixmap *npix, int time)
{
unsigned char *t, *o, *n;
- int blind_height, size, span, position, y;
+ int blind_height, span, position, y;
if (!tpix || !opix || !npix || tpix->w != opix->w || opix->w != npix->w || tpix->h != opix->h || opix->h != npix->h || tpix->n != opix->n || opix->n != npix->n)
return 0;
span = tpix->w * tpix->n;
- size = tpix->h * span;
blind_height = (tpix->h+7) / 8;
position = blind_height * time / 256;
t = tpix->samples;
@@ -50,12 +49,11 @@ static int
blind_vertical(fz_pixmap *tpix, fz_pixmap *opix, fz_pixmap *npix, int time)
{
unsigned char *t, *o, *n;
- int blind_width, size, span, position, y;
+ int blind_width, span, position, y;
if (!tpix || !opix || !npix || tpix->w != opix->w || opix->w != npix->w || tpix->h != opix->h || opix->h != npix->h || tpix->n != opix->n || opix->n != npix->n)
return 0;
span = tpix->w * tpix->n;
- size = tpix->h * span;
blind_width = (tpix->w+7) / 8;
position = blind_width * time / 256;
blind_width *= tpix->n;