Branch: Tag:

2000-08-16

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

Fixed a few warnings.

Rev: src/array.c:1.84
Rev: src/array.h:1.28
Rev: src/fdlib.c:1.38
Rev: src/interpret.c:1.164
Rev: src/language.yacc:1.207
Rev: src/modules/MIME/mime.c:1.25
Rev: src/modules/_Crypto/crypto.c:1.37
Rev: src/modules/call_out/call_out.c:1.38
Rev: src/modules/files/efuns.c:1.83
Rev: src/modules/files/file.c:1.187
Rev: src/pike_memory.c:1.80
Rev: src/pike_memory.h:1.23

110:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.206 2000/08/15 19:00:24 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.207 2000/08/16 16:02:08 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
474:      constant_name: TOK_IDENTIFIER '=' safe_expr0    { -  int tmp; +  ptrdiff_t tmp;    /* This can be made more lenient in the future */       /* Ugly hack to make sure that $3 is optimized */
502:    {    yyerror("Error in constant definition.");    }else{ -  pop_n_elems(tmp-1); +  pop_n_elems(DO_NOT_WARN((INT32)(tmp - 1)));    add_constant($1->u.sval.u.string, Pike_sp-1,    Pike_compiler->current_modifiers & ~ID_EXTERN);    pop_stack();