Branch: Tag:

2000-10-20

2000-10-20 09:08:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/modules/Image/encodings/xcf.c:1.31

1:   #include "global.h" - RCSID("$Id: xcf.c,v 1.30 2000/10/19 20:34:33 grubba Exp $"); + RCSID("$Id: xcf.c,v 1.31 2000/10/20 09:08:38 grubba Exp $");      #include "image_machine.h"   
82:    pop_n_elems( args );       if( i < 0 ) i = s->len + i; -  if( i >= s->len ) error("Index out of bounds, %d > %d\n", i, s->len-1 ); +  if( i >= s->len ) { +  error("Index out of bounds, %d > %ld\n", i, +  DO_NOT_WARN((long)s->len-1) ); +  }    push_int( ((unsigned char *)s->s->str)[s->offset+i] );   }   
1302:    int ix, iy=y/shrink; \    for(cy=0; cy<eheight; cy+=shrink,iy=((cy+y)/shrink)) \    { \ -  rgb_group *ip, *ap; \ +  rgb_group *ip, *ap = NULL; \    int ind=cy*ewidth; \    int ds = 0; \    if(iy >= i->ysize) continue; \