Branch: Tag:

2001-06-13

2001-06-13 13:17:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/modules/Gmp/mpz_glue.c:1.94
Rev: src/modules/Gz/zlibmod.c:1.40
Rev: src/modules/Image/encodings/_xpm.c:1.17
Rev: src/modules/Image/encodings/ilbm.c:1.22
Rev: src/modules/Image/encodings/pcx.c:1.16
Rev: src/modules/Image/encodings/png.c:1.42
Rev: src/modules/Image/encodings/psd.c:1.30
Rev: src/modules/Image/encodings/pvr.c:1.14
Rev: src/modules/Image/encodings/ras.c:1.14
Rev: src/modules/Image/encodings/tga.c:1.27
Rev: src/modules/Image/encodings/tim.c:1.12
Rev: src/modules/Image/encodings/xcf.c:1.38
Rev: src/modules/Image/image.c:1.188

1:   #include "global.h" - RCSID("$Id: xcf.c,v 1.37 2001/04/15 13:21:13 mirar Exp $"); + RCSID("$Id: xcf.c,v 1.38 2001/06/13 13:00:21 grubba Exp $");      #include "image_machine.h"   
340:      static struct property read_property( struct buffer * data )   { -  int i; +     struct property res;    res.type = read_uint( data );    if(res.type == PROP_COLORMAP)
566:    ONERROR err;    int offset;    struct property tmp; -  struct buffer ob; +        MEMSET(&res, 0, sizeof(res));    res.width = read_uint( buff );
604:    ONERROR err;    int offset;    struct property tmp; -  struct buffer ob; +        MEMSET(&res, 0, sizeof(res));    res.width = read_uint( buff );
780:    f_aggregate_mapping( 4 );    p = p->next;    } -  f_aggregate(DO_NOT_WARN(sp - osp)); +  f_aggregate(DO_NOT_WARN((INT32)(sp - osp)));   }      static void push_tile( struct tile *t )
807:    push_tile( t );    t=t->next;    } -  f_aggregate(DO_NOT_WARN(sp - tsp)); -  f_aggregate_mapping(DO_NOT_WARN(sp - osp)); +  f_aggregate(DO_NOT_WARN((INT32)(sp - tsp))); +  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp - osp)));   }      static void push_layer_mask(struct layer_mask *i)
821:    ref_push_string( s_name ); push_buffer( &i->name );    ref_push_string( s_image_data );    push_hierarchy( &i->image_data ); -  f_aggregate_mapping(DO_NOT_WARN(sp-osp)); +  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp-osp)));   }      static void push_channel(struct channel *i)
834:    ref_push_string( s_name ); push_buffer( &i->name );    ref_push_string( s_image_data );    push_hierarchy( &i->image_data ); -  f_aggregate_mapping(DO_NOT_WARN(sp-osp)); +  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp-osp)));   }      static void push_layer(struct layer *i)
853:    ref_push_string( s_mask );    push_layer_mask( i->mask );    } -  f_aggregate_mapping(DO_NOT_WARN(sp - osp)); +  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp - osp)));   }      
888:    c = c->next;    }    f_aggregate( nitems ); -  f_aggregate_mapping(DO_NOT_WARN(sp-osp)); +  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp-osp)));   }