Branch: Tag:

2001-07-12

2001-07-12 14:04:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/modules/Image/colors.c:1.51
Rev: src/modules/Image/colortable.c:1.103
Rev: src/modules/Image/colortable_lookup.h:1.16
Rev: src/modules/Image/polyfill.c:1.38
Rev: src/modules/Image/search.c:1.21
Rev: src/modules/Math/math_matrix.c:1.28
Rev: src/modules/Odbc/odbc.c:1.25
Rev: src/modules/Odbc/odbc_result.c:1.25
Rev: src/modules/PDF/pdf_module.c:1.9
Rev: src/modules/Parser/html.c:1.144
Rev: src/modules/Parser/parser.c:1.12

1:   /*   **! module Image   **! note - **! $Id: colors.c,v 1.50 2001/07/01 21:53:37 mast Exp $ + **! $Id: colors.c,v 1.51 2001/07/12 13:52:47 grubba Exp $   **! submodule Color   **!   **! This module keeps names and easy handling
179:      #include "global.h"    - RCSID("$Id: colors.c,v 1.50 2001/07/01 21:53:37 mast Exp $"); + RCSID("$Id: colors.c,v 1.51 2001/07/12 13:52:47 grubba Exp $");      #include "image_machine.h"   
768:      static void image_color__sprintf(INT32 args)   { -  int prec,n,x; +  int prec,x;       if (args<2)    SIMPLE_TOO_FEW_ARGS_ERROR("_sprintf",2);
1356:    if (sp[-1].u.string->len>(ptrdiff_t)strlen(callables[n]) &&    memcmp(sp[-1].u.string->str,callables[n],strlen(callables[n]))==0)    { -  push_int(DO_NOT_WARN(strlen(callables[n]))); +  push_int(DO_NOT_WARN((INT32)strlen(callables[n])));    push_int(1000000);    f_index(3);    image_get_color(1);
1402:      static void image_guess_color(INT32 args)   { -  struct svalue s; -  +     if (args!=1 && sp[-args].type!=T_STRING)    bad_arg_error("Image.Color->guess",sp-args,args,0,"",sp-args,    "Bad arguments to Image.Color->guess()\n");
1443:      static void image_make_color(INT32 args)   { -  struct svalue s; -  +     if (args==1 && sp[-args].type==T_STRING)    {    image_get_color(args);
1683:      void init_image_colors(void)   { -  struct program *prg; -  struct pike_string *str; -  +     str_array=make_shared_string("array");    str_string=make_shared_string("string");    str_r=make_shared_string("r");