Branch: Tag:

2003-06-11

2003-06-11 23:02:55 by Martin Nilsson <mani@lysator.liu.se>

Fixed TCC warnings

Rev: src/builtin_functions.c:1.495
Rev: src/combine_path.h:1.12
Rev: src/peep.c:1.86
Rev: src/pike_types.c:1.216

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.494 2003/06/03 18:45:51 mast Exp $ + || $Id: builtin_functions.c,v 1.495 2003/06/11 23:01:48 nilsson Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.494 2003/06/03 18:45:51 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.495 2003/06/11 23:01:48 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
1930:    int level;       if (CDR (n)) { -  struct program_state *state = Pike_compiler; +     if (CDR (n)->token != F_CONSTANT)    /* Not a constant expression. Make a call to f_this_object. */    return 0;
4343:   {    ptrdiff_t i;    ptrdiff_t offset = 0; -  int num_percent_percent = 0; +     struct svalue *old_sp = Pike_sp;       for (i=offset; i < slen; i++) {
4520:   {    INT32 i,matches;    struct array *a; -  struct svalue tmp; +     struct pike_string *glob;       if(args < 2)
4776:   {    int *stack;    int *links; -  int i, top=0, l=0, ltop=-1; +  int i, top=0, ltop=-1;    struct array *res;    ONERROR tmp;    ONERROR tmp2;
5092:    */   static struct array *diff_longest_sequence(struct array *cmptbl, int blen)   { -  int i,j,top=0,lsize=0; +  int i,j,top=0;    struct array *a;    struct diff_magic_link_pool *pools=NULL;    struct diff_magic_link *dml;
5313:   static struct array *diff_dyn_longest_sequence(struct array *cmptbl, int blen)   {    struct array *res = NULL; -  struct diff_magic_link_head *table = NULL; +  struct diff_magic_link_head *table;    struct diff_magic_link_pool *dml_pool = NULL;    struct diff_magic_link *dml;    unsigned int sz = (unsigned int)cmptbl->size;    unsigned int i;    unsigned int off1 = 0;    unsigned int off2 = blen + 1; -  unsigned int l1 = 0; -  unsigned int l2 = 0; +        table = calloc(sizeof(struct diff_magic_link_head)*2, off2);    if (!table) {
6465:    struct array *in;    struct array *outinner;    INT32 sizeininner=0,sizein=0; -  INT32 inner=0; +     INT32 j,i;    TYPE_FIELD type=0;   #ifdef PIKE_DEBUG