Branch: Tag:

2000-08-15

2000-08-15 16:19:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/array.c:1.83
Rev: src/backend.c:1.54
Rev: src/docode.c:1.78
Rev: src/encode.c:1.66
Rev: src/error.c:1.60
Rev: src/error.h:1.48
Rev: src/errors.h:1.12
Rev: src/fsort.c:1.14
Rev: src/hashtable.c:1.7
Rev: src/main.c:1.96
Rev: src/pike_memory.h:1.21
Rev: src/pike_types.c:1.133
Rev: src/pike_types.h:1.43

21:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.59 2000/08/15 11:42:44 grubba Exp $"); + RCSID("$Id: error.c,v 1.60 2000/08/15 16:11:36 grubba Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
225:    char foo;   #define TESTILITEST ((((char *)Pike_interpreter.recoveries)-((char *)&foo))*STACK_DIRECTION)    if(Pike_interpreter.recoveries && TESTILITEST > 0) { -  fprintf(stderr, "Recoveries is out biking (Pike_interpreter.recoveries=%p, Pike_sp=%p, %d)!\n", -  Pike_interpreter.recoveries, &foo, TESTILITEST); +  fprintf(stderr, "Recoveries is out biking (Pike_interpreter.recoveries=%p, Pike_sp=%p, %ld)!\n", +  Pike_interpreter.recoveries, &foo, +  DO_NOT_WARN((long)TESTILITEST));    fprintf(stderr, "Last recovery was added at %s:%d\n",    Pike_interpreter.recoveries->file,    Pike_interpreter.recoveries->line);    fatal("Recoveries is out biking (Pike_interpreter.recoveries=%p, Pike_sp=%p, %d)!\n", -  Pike_interpreter.recoveries, &foo, TESTILITEST); +  Pike_interpreter.recoveries, &foo, +  DO_NOT_WARN((long)TESTILITEST));    }       /* Add more stuff here when required */
356:    exit(99);    }    -  if((long)strlen(buf) >= (long)sizeof(buf)) +  if((size_t)strlen(buf) >= (size_t)sizeof(buf))    fatal("Buffer overflow in error()\n");       low_error(buf);
738:    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 6, 7)))   {    INIT_ERROR(resource); -  ERROR_COPY(resource,howmuch); +  ERROR_COPY(resource, DO_NOT_WARN((INT32)howmuch));    ERROR_STRUCT(resource,o)->resource_type=make_shared_string(resource_type);    ERROR_DONE(generic);   }