fixed some warnings

SVN revision: 8969
This commit is contained in:
Tilman Sauerbeck 2004-02-15 01:30:48 +00:00
parent 0f30f8b88e
commit 472c87ace8
3 changed files with 5 additions and 7 deletions

View File

@ -20,7 +20,7 @@ static int uncompress_file (FILE *fp, int dest)
{
BZFILE *bf;
DATA8 outbuf[OUTBUF_SIZE];
int cont = 1, bytes, error;
int bytes, error;
bf = BZ2_bzReadOpen (&error, fp, 0, 0, NULL, 0);

View File

@ -134,7 +134,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
if (((!im->data) && (im->loader)) || (immediate_load) || (progress))
{
DATA8 *data = NULL; /* for the binary versions */
DATA8 *ptr;
DATA8 *ptr = NULL;
int *idata = NULL; /* for the ASCII versions */
int *iptr;
char buf2[256];
@ -593,7 +593,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
if (progress)
{
char per;
int l;
int l = 0;
per = (char)((100 * y) / im->h);
if (((per - pper) >= progress_granularity)
@ -662,7 +662,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
if (progress)
{
char per;
int l;
int l = 0;
per = (char)((100 * y) / im->h);
if (((per - pper) >= progress_granularity)

View File

@ -47,8 +47,6 @@ static void put_separate_and_raster(TIFFRGBAImage *, uint32 *, uint32,
unsigned char *);
static void raster(TIFFRGBAImage_Extra * img, uint32 * raster, uint32 x,
uint32 y, uint32 w, uint32 h);
static void error_handler(const char *module, const char *fmt,
va_list ap);
char load(ImlibImage * im, ImlibProgressFunction progress,
char progress_granularity, char immediate_load);
char save(ImlibImage * im, ImlibProgressFunction progress,
@ -300,7 +298,7 @@ save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity)
DATA32 pixel, *data = im->data;
double alpha_factor;
uint32 x, y;
uint8 r, g, b, a;
uint8 r, g, b, a = 0;
int has_alpha = IMAGE_HAS_ALPHA(im);
int i = 0, pl = 0;
char pper = 0;