php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3931 Several compiler warnings
Submitted: 2000-03-26 18:21 UTC Modified: 2000-06-10 19:06 UTC
From: ime at iae dot nl Assigned:
Status: Closed Package: Compile Warning
PHP Version: 4.0 Latest CVS (26/03/2000) OS: Linux 2.2.14
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: ime at iae dot nl
New email:
PHP Version: OS:

 

 [2000-03-26 18:21 UTC] ime at iae dot nl
[root@fatbird php-4.0RC1]# cat ../php-config.cmd 
./configure --with-ttf --with-exec=/www --enable-safe-mode --with-gd --enable-track-vars --with-config-file-path=/etc --with-mysql --enable-memory-limit --with-apache=../apache_1.3.12
loading cache ./config.cache[root@fatbird php-4.0RC1]# ./configure --with-ttf --with-exec=/www --enable-safe-mode --with-gd --enable-track-vars --with-config-file-path=/etc --with-mysql --enable-memory-limit --with-apache=../apache_1.3.12
creating cache ./config.cache

Running system checks

[root@fatbird php-4.0RC1]# make
Making all in Zend
make[1]: Entering directory `/archive/src/srv/uranus1312/php-4.0RC1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   -DXML_BYTE_ORDER=12 -D_REENTRANT  -g -O2  -Wall -c zend-scanner.c
zend-scanner.c:5755: warning: `yy_fatal_error' defined but not used
zend-scanner.c:5740: warning: `yy_top_state' defined but not used
gd.c: In function `php_if_imagecreatefromgif':
gd.c:557: warning: implicit declaration of function `gdImageCreateFromGif'
gd.c:557: warning: assignment makes pointer from integer without a cast
gd.c: In function `php_if_imagegif':
gd.c:600: warning: implicit declaration of function `gdImageGif'
gd.c: In function `php_imagettftext_common':
gd.c:1827: warning: `im' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c libmysql.c && touch libmysql.lo
libmysql.c: In function `net_safe_read':
libmysql.c:260: warning: `old_signal_handler' might be used uninitialized in this function
libmysql.c: In function `simple_command':
libmysql.c:389: warning: `old_signal_handler' might be used uninitialized in this function
libmysql.c: In function `end_server':
libmysql.c:612: warning: `old_signal_handler' might be used uninitialized in this function
libmysql.c: In function `mysql_real_connect':
libmysql.c:1116: warning: `old_signal_handler' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c my_init.c && touch my_init.lo
my_init.c: In function `my_end':
my_init.c:106: warning: int format, long int arg (arg 5)
my_init.c:106: warning: int format, long int arg (arg 6)
my_init.c:106: warning: int format, long int arg (arg 7)
my_init.c:106: warning: int format, long int arg (arg 8)
my_init.c:106: warning: int format, long int arg (arg 9)
my_init.c:106: warning: int format, long int arg (arg 10)
my_init.c:106: warning: int format, long int arg (arg 11)
my_init.c:106: warning: int format, long int arg (arg 12)
my_init.c:106: warning: int format, long int arg (arg 13)
my_init.c:106: warning: int format, long int arg (arg 14)
my_init.c:106: warning: int format, long int arg (arg 15)
my_init.c:106: warning: int format, long int arg (arg 16)
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c mf_pack.c && touch mf_pack.lo
mf_pack.c: In function `pack_dirname':
mf_pack.c:25: warning: `buff_length' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c typelib.c && touch typelib.lo
typelib.c: In function `find_type':
typelib.c:22: warning: `findpos' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c default.c && touch default.lo
default.c: In function `print_defaults':
default.c:311: warning: unused variable `have_ext'
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c strmov.c && touch strmov.lo
strmov.c: In function `strmov':
strmov.c:21: warning: suggest parentheses around assignment used as truth value
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c strxmov.c && touch strxmov.lo
strxmov.c: In function `strxmov':
strxmov.c:26: warning: suggest parentheses around assignment used as truth value
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/pcre/pcrelib -I../../.. -I../../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c pcre.c && touch pcre.lo
pcre.c: In function `compile_branch':
pcre.c:657: warning: `c' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/ext/standard -I../.. -I../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c image.c && touch image.lo
image.c: In function `php_handle_jpeg':
image.c:215: warning: `marker' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/sapi/apache -I../.. -I../../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c mod_php4.c && touch mod_php4.lo
mod_php4.c: In function `send_php':
mod_php4.c:418: warning: argument `filename' might be clobbered by `longjmp' or `vfork'
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/regex -I.. -I../Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c regexec.c && touch regexec.lo
regexec.c:19: warning: `nope' defined but not used
gcc -DHAVE_CONFIG_H -I. -I/archive/src/srv/uranus1312/php-4.0RC1/. -I. -I./Zend -I/archive/src/srv/uranus1312/php-4.0RC1 -I/archive/src/srv/uranus1312/apache_1.3.12/src/include -I/archive/src/srv/uranus1312/apache_1.3.12/src/os/unix -I/archive/src/srv/uranus1312/php-4.0RC1/ext/mysql/libmysql -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmltok -I/archive/src/srv/uranus1312/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall  -c configuration-scanner.c && touch configuration-scanner.lo
configuration-scanner.c:653: warning: return-type defaults to `int'
configuration-scanner.c: In function `cfglex':
configuration-scanner.c:721: warning: label `find_rule' defined but not used
configuration-scanner.c: At top level:
configuration-scanner.c:1791: warning: `yy_flex_realloc' defined but not used
configuration-scanner.c:1274: warning: `yyunput' defined but not used

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-10 19:06 UTC] zeev at cvs dot php dot net
All of the warnings here are beyond our control, unfortunately (they're in bundled/generated code)...
Except for the ones in gd.c, which appear to be gone.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC