Branch: Tag:

2001-09-24

2001-09-24 16:58:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/builtin.cmod:1.66
Rev: src/builtin_functions.c:1.406
Rev: src/combine_path.h:1.8
Rev: src/iterators.cmod:1.14
Rev: src/las.c:1.266
Rev: src/peep.c:1.70
Rev: src/program.c:1.372
Rev: src/stralloc.c:1.136
Rev: src/svalue.c:1.124
Rev: src/threads.c:1.166

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.405 2001/09/04 19:26:54 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.406 2001/09/24 16:57:17 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
495:    INT_TYPE len, e;    get_all_args("random_string",args,"%i",&len);    ret = begin_shared_string(len); -  for(e=0;e<len;e++) ret->str[e]=my_rand(); +  for(e=0;e<len;e++) ret->str[e] = DO_NOT_WARN((char)my_rand());    pop_n_elems(args);    push_string(end_shared_string(ret));   }
1080:      static int generate_zero_type(node *n)   { -  node **arg; +     if(count_args(CDR(n)) != 1) return 0;    if(do_docode(CDR(n),DO_NOT_COPY) != 1)    fatal("Count args was wrong in generate_zero_type().\n");
1502:    } else {    /* This and onwards is extended UTF-8 encoding. */    /* 32 - 36bit */ -  out->str[j++] = 0xfe; +  out->str[j++] = DO_NOT_WARN((char)0xfe);    out->str[j++] = 0x80 | ((c >> 30) & 0x3f);    out->str[j++] = 0x80 | ((c >> 24) & 0x3f);    out->str[j++] = 0x80 | ((c >> 18) & 0x3f);
1684:   static void f_parse_pike_type( INT32 args )   {    struct pike_type *t; -  struct pike_string *res; +     if( !args || Pike_sp[-1].type != T_STRING ||    Pike_sp[-1].u.string->size_shift )    Pike_error( "__parse_pike_type requires a 8bit string as its first argument\n" );
3314:   #endif       double delay=0.0; -  double target; +     int do_microsleep;    int do_abort_on_signal;   
3424:    */   void f_gc(INT32 args)   { -  INT32 tmp; +     pop_n_elems(args);    push_int(do_gc());   }
3941: Inside #if defined(HAVE_MKTIME)
   */   PMOD_EXPORT void f_mktime (INT32 args)   { -  INT_TYPE sec, min, hour, mday, mon, year, isdst; +  INT_TYPE sec, min, hour, mday, mon, year;    struct tm date; -  struct svalue s; -  struct svalue * r; +     int retval; -  +     if (args<1)    SIMPLE_TOO_FEW_ARGS_ERROR("mktime", 1);   
4200:   {    INT32 i,matches;    struct array *a; -  struct svalue *sval, tmp; +  struct svalue tmp;    struct pike_string *glob;       if(args < 2)
4458:   {    int *stack;    int *links; -  int i,j,top=0,l=0,ltop=-1; +  int i, top=0, l=0, ltop=-1;    struct array *res;    ONERROR tmp;    ONERROR tmp2;
6019:    struct array *out;    struct array *in;    struct array *outinner; -  struct array *ininner; +     INT32 sizeininner=0,sizein=0;    INT32 inner=0;    INT32 j,i;
6332:   PMOD_EXPORT void f_map(INT32 args)   {    struct svalue *mysp; -  struct array *a,*d,*f; +  struct array *a,*d;    int splice,i,n;       if (args<1)