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

23:   #include "stuff.h"   #include "bignum.h"    - RCSID("$Id: array.c,v 1.117 2001/09/11 05:37:26 hubbe Exp $"); + RCSID("$Id: array.c,v 1.118 2001/09/24 14:21:10 grubba Exp $");      PMOD_EXPORT struct array empty_array=   {
353:    struct array *ret;    ret=low_allocate_array(size, (size>>1) + 4);    MEMCPY(ITEM(ret),ITEM(a),sizeof(struct svalue)*a->size); -  ret->type_field = a->type_field | BIT_INT; +  ret->type_field = DO_NOT_WARN((TYPE_FIELD)(a->type_field | BIT_INT));    a->size=0;    free_array(a);    return ret;
683:      INLINE int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b)   { -  INT32 def,fun; +  INT32 def;    if(a->type == b->type)    {    switch(a->type)
2079:      void gc_mark_array_as_referenced(struct array *a)   { -  int e; +     if(gc_mark(a)) {   #ifdef PIKE_DEBUG    if (a == &empty_array || a == &weak_empty_array || a == &weak_shrink_empty_array)
2148:   void real_gc_cycle_check_array(struct array *a, int weak)   {    GC_CYCLE_ENTER(a, weak) { -  int e; +    #ifdef PIKE_DEBUG    if (a == &empty_array || a == &weak_empty_array || a == &weak_shrink_empty_array)    fatal("Trying to gc cycle check some *_empty_array.\n");