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

27:   #include "bignum.h"   #include "operators.h"    - RCSID("$Id: opcodes.c,v 1.115 2001/07/31 19:31:21 marcus Exp $"); + RCSID("$Id: opcodes.c,v 1.116 2001/09/24 14:58:05 grubba Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {
379:      void o_cast(struct pike_type *type, INT32 run_time_type)   { -  INT32 i; -  +     if(run_time_type != sp[-1].type)    {    if(run_time_type == T_MIXED)
501:    break;       case T_STRING: -  f=STRTOD_PCHARP(MKPCHARP(sp[-1].u.string->str, -  sp[-1].u.string->size_shift),0); +  f = +  (FLOAT_TYPE)STRTOD_PCHARP(MKPCHARP(sp[-1].u.string->str, +  sp[-1].u.string->size_shift), +  0);    free_string(sp[-1].u.string);    break;   
622:    {    ref_push_array(a);    }else{ -  INT32 e,i; +  INT32 e;   #ifdef PIKE_DEBUG    struct svalue *save_sp=sp+1;   #endif
667:    {    ref_push_multiset(m);    }else{ -  INT32 e,i; +  INT32 e;    struct array *a;   #ifdef PIKE_DEBUG    struct svalue *save_sp=sp+1;
720:    {    ref_push_mapping(m);    }else{ -  INT32 e,i; +  INT32 e;    struct keypair *k;   #ifdef PIKE_DEBUG    struct svalue *save_sp=sp+1;
1128:    ptrdiff_t cnt, eye, e, field_length = 0; \    int no_assign = 0, minus_flag = 0; \    struct sscanf_set set; \ -  struct svalue *argp; \ +     \    \    set.a = 0; \
1257:    \    case 'c': \    { \ + CHAROPT2( \    int e; \ -  + ) \    sval.type=T_INT; \    sval.subtype=NUMBER_NUMBER; \    if(field_length == -1) \
1293:    \    while(--field_length >= 0) \    { \ -  int lshfun, orfun; \ +     x = input[eye]; \    \    DO_IF_BIGNUM( \
1397:    chars_matched[0]=eye; \    return matches; \    } \ -  sval.u.float_number=STRTOD_PCHARP(MKPCHARP(input+eye, \ +  sval.u.float_number = \ +  (FLOAT_TYPE)STRTOD_PCHARP(MKPCHARP(input+eye, \    INPUT_SHIFT),&t2); \    t = (PIKE_CONCAT(p_wchar, INPUT_SHIFT) *)(t2.ptr); \    if(input + eye == t) \