php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6947 all compiler warnings
Submitted: 2000-09-29 17:24 UTC Modified: 2001-02-10 15:20 UTC
From: melchers at cis dot fu-berlin dot de Assigned:
Status: Closed Package: Compile Warning
PHP Version: 3.0.16 OS: IRIX-6.5.8
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: melchers at cis dot fu-berlin dot de
New email:
PHP Version: OS:

 

 [2000-09-29 17:24 UTC] melchers at cis dot fu-berlin dot de
WARNING File = functions/basic_functions.c, Line = 548
  The variable "ret" is set but never used.

                int ret;
                    ^

WARNING File = functions/db.c, Line = 271
  The variable "ret" is set but never used.

        int ret, lock=0;
            ^

WARNING File = functions/file.c, Line = 275
  Argument of type "char *" is incompatible with parameter of type
          "unsigned char *".

                && !php3i_stristr(buf,"</head>")) {
                                  ^

WARNING File = functions/file.c, Line = 276
  Argument of type "char *" is incompatible with parameter of type
          "unsigned char *".

                if(php3i_stristr(buf,"<meta")) {
                                 ^

WARNING File = functions/file.c, Line = 280
  Argument of type "char *" is incompatible with parameter of type
          "unsigned char *".

                        tmp=php3i_stristr(buf,"name=\"");
                                          ^
WARNING File = functions/file.c, Line = 315
  Argument of type "char *" is incompatible with parameter of type
          "unsigned char *".

                                tmp=php3i_stristr(buf,"content=\"");
                                                  ^

WARNING File = functions/file.c, Line = 232
  The variable "var_namelen" is set but never used.

        int len, var_namelen;
                 ^

WARNING File = functions/file.c, Line = 999
  The variable "issock" is set but never used.

        int issock=0;
            ^

WARNING File = functions/fsock.c, Line = 677
  An unsigned integer is being compared to zero.

        if(size < 0) return ret;
                ^

WARNING File = functions/gd.c, Line = 1905
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                l = strlen(string);
                           ^

WARNING File = functions/gd.c, Line = 2214
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

        l = strlen(string);
                   ^

WARNING File = functions/gd.c, Line = 2217
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        error = gdttf(im, brect, col, fontname, ptsize, angle, x, y, string);
                                      ^

WARNING File = functions/gd.c, Line = 2217
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        error = gdttf(im, brect, col, fontname, ptsize, angle, x, y, string);
                                                                     ^

WARNING File = functions/gd.c, Line = 2169
  The variable "l" is set but never used.

        int  col, x, y, l=0, i;
                        ^

WARNING File = functions/head.c, Line = 53
  The variable "cont_type" is set but never used.

  static char *cont_type = NULL;
               ^

WARNING File = functions/image.c, Line = 216
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        sprintf(markername,"APP%d",marker - M_APP0);
                ^

WARNING File = functions/image.c, Line = 218
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        add_assoc_stringl(info,markername,buffer,length,1);
                               ^

WARNING File = functions/image.c, Line = 218
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        add_assoc_stringl(info,markername,buffer,length,1);
                                          ^

WARNING File = functions/iptc.c, Line = 115
  The variable "c" is set but never used.

        int c;
            ^

WARNING File = functions/iptc.c, Line = 298
  A value of type "unsigned char *" cannot be used to initialize an entity of
          type "char *".

                RETVAL_STRINGL(spoolbuf,poi - spoolbuf,0);
                ^

WARNING File = functions/iptc.c, Line = 321
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

        buffer = str->value.str.val;
               ^

WARNING File = functions/iptc.c, Line = 354
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

                sprintf(key,"%d#%03d",(unsigned int) dataset,(unsigned int) recnum);
                        ^

WARNING File = functions/iptc.c, Line = 366
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

                if (_php3_hash_find(return_value->value.ht,key,strlen(key) + 1,(void **) &element) == FAILURE) {
                                                           ^

WARNING File = functions/iptc.c, Line = 366
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                if (_php3_hash_find(return_value->value.ht,key,strlen(key) + 1,(void **) &element) == FAILURE) {
                                                                      ^

WARNING File = functions/iptc.c, Line = 372
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

                        _php3_hash_update(return_value->value.ht, key, strlen(key)+1, (void *) &values, sizeof(pval), (void **) &element);
                        ^

WARNING File = functions/iptc.c, Line = 372
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                        _php3_hash_update(return_value->value.ht, key, strlen(key)+1, (void *) &values, sizeof(pval), (void **) &element);
                        ^

WARNING File = functions/iptc.c, Line = 375
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

                add_next_index_stringl(element,buffer+inx,len,1);
                                               ^

WARNING File = functions/iptc.c, Line = 308
  The variable "inheader" is set but never used.

        unsigned int length, inx, len, inheader, tagsfound;
                                       ^

WARNING File = functions/md5.c, Line = 50
  Argument of type "char *" is incompatible with parameter of type
          "const unsigned char *".

        PHP3_MD5Update(&context, arg->value.str.val, arg->value.str.len);
                                 ^

WARNING File = functions/mysql.c, Line = 644
  The variable "mysql" is set but never used.

        MYSQL *mysql;
               ^

WARNING File = functions/mysql.c, Line = 1482
  The variable "num_fields" is set but never used.

        int num_fields;
            ^

WARNING File = functions/mysql.c, Line = 1976
  The variable "mysql_result" is set but never used.

        MYSQL_RES *mysql_result;
                   ^

WARNING File = functions/pack.c, Line = 848
  The variable "val" is set but never used.

                pval val;
                     ^

WARNING File = functions/post.c, Line = 56
  The variable "cnt" is set but never used.

        int length, cnt;

WARNING File = functions/string.c, Line = 53
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

        new = (char *) emalloc(oldlen * 2 * sizeof(char));
            ^

WARNING File = functions/string.c, Line = 55
  The "return" expression type differs from the function return type.

                return new;
                       ^

WARNING File = functions/string.c, Line = 65
  The "return" expression type differs from the function return type.

        return new;
               ^

WARNING File = functions/string.c, Line = 65
  The "return" expression type differs from the function return type.

        return new;
               ^

WARNING File = functions/string.c, Line = 82
  Argument of type "char *" is incompatible with parameter of type
          "const unsigned char *".

        new = php_bin2hex(data->value.str.val, data->value.str.len, &newlen);
                          ^

WARNING File = functions/string.c, Line = 417
  The variable "tokp" is set but never used.

        char *token = NULL, *tokp=NULL;
                             ^

WARNING File = functions/string.c, Line = 622
  The "return" expression type differs from the function return type.

                        return s + l;
                               ^

WARNING File = functions/string.c, Line = 646
  Argument of type "char *" is incompatible with parameter of type
          "unsigned char *".

        found = php3i_stristr(haystack->value.str.val, needle->value.str.val);
                              ^

WARNING File = functions/string.c, Line = 646
  Argument of type "char *" is incompatible with parameter of type
          "unsigned char *".

        found = php3i_stristr(haystack->value.str.val, needle->value.str.val);
                                                       ^

WARNING File = functions/string.c, Line = 1586
  The variable "opposite_target" is set but never used.

        char *heb_str,*tmp,*target,*opposite_target,*broken_str;
                                    ^

WARNING File = functions/string.c, Line = 1588
  The variable "block_ended" is set but never used.

        int block_ended;
            ^

WARNING File = functions/base64.c, Line = 163
  Argument of type "char *" is incompatible with parameter of type
          "const unsigned char *".

        result = _php3_base64_encode(string->value.str.val, string->value.str.len, &ret_length);
                                     ^

WARNING File = functions/base64.c, Line = 165
  A value of type "unsigned char *" cannot be assigned to an entity of type
          "char *".

                return_value->value.str.val = result;
                                            ^

WARNING File = functions/base64.c, Line = 187
  Argument of type "char *" is incompatible with parameter of type
          "const unsigned char *".

        result = _php3_base64_decode(string->value.str.val, string->value.str.len, &ret_length);
                                     ^

WARNING File = functions/base64.c, Line = 189
  A value of type "unsigned char *" cannot be assigned to an entity of type
          "char *".

                return_value->value.str.val = result;
                                            ^

WARNING File = functions/gdttf.c, Line = 429
  Argument of type "short *" is incompatible with parameter of type "TT_UShort *"
          .

                TT_Get_CharMap_ID(a->face, i, &platform, &encoding);
                                              ^

WARNING File = functions/gdttf.c, Line = 429
  Argument of type "short *" is incompatible with parameter of type "TT_UShort *"
          .

                TT_Get_CharMap_ID(a->face, i, &platform, &encoding);
                                                         ^

WARNING File = functions/gdttf.c, Line = 486
  The variable "err" is set but never used.

        int                                     flags, err;
                                                       ^

WARNING File = functions/mhash.c, Line = 66
  An enumerated type is mixed with another type.

                name = mhash_get_hash_name(i);
                                           ^

WARNING File = functions/mhash.c, Line = 97
  An enumerated type is mixed with another type.

        RETURN_LONG(mhash_get_block_size(hash->value.lval));
        ^

WARNING File = functions/mhash.c, Line = 115
  An enumerated type is mixed with another type.

        name = mhash_get_hash_name(hash->value.lval);
                                   ^

WARNING File = functions/mhash.c, Line = 141
  An enumerated type is mixed with another type.

        bsize = mhash_get_block_size(hash->value.lval);
                                     ^

WARNING File = functions/mhash.c, Line = 142
  An enumerated type is mixed with another type.

        td = mhash_init(hash->value.lval);
                        ^

WARNING File = functions/mhash.c, Line = 153
  A value of type "unsigned char *" cannot be used to initialize an entity of
          type "char *".

                RETVAL_STRINGL(hash_data, bsize, 1);
                ^


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 15:20 UTC] jimw@php.net
harmless.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC