Branch: Tag:

2001-09-24

2001-09-24 15:02:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/array.c:1.118
Rev: src/backend.cmod:1.20
Rev: src/docode.c:1.132
Rev: src/encode.c:1.129
Rev: src/error.c:1.76
Rev: src/fd_control.c:1.37
Rev: src/fdlib.c:1.50
Rev: src/fsort_template.h:1.9
Rev: src/gc.c:1.177
Rev: src/interpret.c:1.249
Rev: src/interpret_functions.h:1.93
Rev: src/lexer.h:1.34
Rev: src/main.c:1.137
Rev: src/mapping.c:1.137
Rev: src/module_support.c:1.41
Rev: src/modules/system/nt.c:1.45
Rev: src/multiset.c:1.38
Rev: src/object.c:1.185
Rev: src/opcodes.c:1.116
Rev: src/operators.c:1.140
Rev: src/pike_search_engine.c:1.7
Rev: src/preprocessor.h:1.46
Rev: src/signal_handler.c:1.202

5:   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.136 2001/09/06 21:22:00 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.137 2001/09/24 14:44:47 grubba Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"
47:      #undef EXIT_BLOCK   #define EXIT_BLOCK(m) do{ \ -  INT32 e; \ +    DO_IF_DEBUG( \    if(m->refs) \    fatal("really free mapping on mapping with nonzero refs.\n"); \
153:    INT16 flags)   {    struct mapping_data *md; -  char *tmp; +     ptrdiff_t e;    INT32 hashsize;   
269:    struct keypair *from)   {    unsigned INT32 h; -  struct keypair *tmp; +     struct keypair *k;       if(!from) return;
305:    struct keypair *from)   {    unsigned INT32 h; -  struct keypair *tmp; +     struct keypair *k;       if(!from) return;
1352:      PMOD_EXPORT struct mapping *merge_mappings(struct mapping *a, struct mapping *b, INT32 op)   { -  ONERROR r1,r2,r3,r4,r5; +  ONERROR r1,r2,r3,r4;    struct array *ai, *av;    struct array *bi, *bv;    struct array *ci, *cv;
1634:    JMP_BUF catch;    ONERROR err;    INT32 e,d; -  struct keypair *k; +     char buf[40];      #ifdef PIKE_DEBUG
1724:      node *make_node_from_mapping(struct mapping *m)   { -  struct keypair *k; -  INT32 e; -  +    #ifdef PIKE_DEBUG    if(m->data->refs <=0)    fatal("Zero refs in mapping->data\n");
1774:   PMOD_EXPORT void f_aggregate_mapping(INT32 args)   {    INT32 e; -  struct keypair *k; +     struct mapping *m;       if(args & 1)