summaryrefslogtreecommitdiffstats
path: root/Modules/imgfile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-05 23:43:35 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-05 23:43:35 (GMT)
commita376cc5cc86c62f912886c4002ed1a9b3b213b88 (patch)
treed505b439cc8f6aac1ba75374b6652857273274c0 /Modules/imgfile.c
parent60fca2c90fe4d00715f4ae28d68560e67955ab9b (diff)
downloadcpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.zip
cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.gz
cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.bz2
Keep gcc -Wall happy.
Diffstat (limited to 'Modules/imgfile.c')
-rw-r--r--Modules/imgfile.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/Modules/imgfile.c b/Modules/imgfile.c
index 1c42b35..76f123c 100644
--- a/Modules/imgfile.c
+++ b/Modules/imgfile.c
@@ -61,7 +61,8 @@ static int error_called;
/* The error handler */
-static imgfile_error(str)
+static void
+imgfile_error(str)
char *str;
{
err_setstr(ImgfileError, str);
@@ -199,7 +200,7 @@ static IMAGE *glob_image;
static long *glob_datap;
static int glob_width, glob_z, glob_ysize;
-static
+static void
xs_get(buf, y)
short *buf;
int y;
@@ -210,7 +211,7 @@ xs_get(buf, y)
getrow(glob_image, buf, y, glob_z);
}
-static
+static void
xs_put_c(buf, y)
short *buf;
int y;
@@ -222,7 +223,7 @@ xs_put_c(buf, y)
*datap++ = (*buf++) & 0xff;
}
-static
+static void
xs_put_0(buf, y)
short *buf;
int y;
@@ -233,7 +234,7 @@ xs_put_0(buf, y)
while ( width-- )
*datap++ = (*buf++) & 0xff;
}
-static
+static void
xs_put_12(buf, y)
short *buf;
int y;
@@ -291,7 +292,7 @@ imgfile_readscaled(self, args)
char *filter;
double blur;
int extended;
- int fmode;
+ int fmode = 0;
int yfirst, ylast, ystep;
/*