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

25:   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.128 2001/09/09 05:19:36 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.129 2001/09/24 14:25:54 grubba Exp $");      /* #define ENCODE_DEBUG */   
944:    Pike_error("Error in master()->nameof(), same type returned.\n");    if(Pike_sp[-1].type == T_INT && Pike_sp[-1].subtype == NUMBER_UNDEFINED)    { -  INT32 e; +     struct program *p=val->u.program;    if( (p->flags & PROGRAM_HAS_C_METHODS) || p->event_handler )    {
1478:    SET_ONERROR(err1, restore_type_stack, Pike_compiler->type_stackp);    SET_ONERROR(err2, restore_type_mark, Pike_compiler->pike_type_mark_stackp);    + #ifndef USE_PIKE_TYPE   one_more_type: -  + #endif /* !USE_PIKE_TYPE */    tmp = GETC();    switch(tmp)    {
1609:       case T_OBJECT:    { -  INT32 x; +     int flag = GETC();       decode_value2(data);
1765:    {    case Pike_FP_SNAN: /* Signal Not A Number */    case Pike_FP_QNAN: /* Quiet Not A Number */ -  push_float(MAKE_NAN()); +  push_float(DO_NOT_WARN((FLOAT_TYPE)MAKE_NAN()));    break;       case Pike_FP_NINF: /* Negative infinity */ -  push_float(MAKE_INF(-1)); +  push_float(DO_NOT_WARN((FLOAT_TYPE)MAKE_INF(-1)));    break;       case Pike_FP_PINF: /* Positive infinity */ -  push_float(MAKE_INF(1)); +  push_float(DO_NOT_WARN((FLOAT_TYPE)MAKE_INF(1)));    break;       case Pike_FP_NZERO: /* Negative Zero */
1781:    break;       default: -  push_float(LDEXP(res, num)); +  push_float(DO_NOT_WARN((FLOAT_TYPE)LDEXP(res, num)));    break;    }    break;    }    -  push_float(LDEXP(res, num)); +  push_float(DO_NOT_WARN((FLOAT_TYPE)LDEXP(res, num)));    break;    }