PHP 4.0 Bug #3931: Several compiler warnings
| From: | ime at iae dot nl | Date: | Sun, 26 Mar 2000 23:21:04 +0000 |
| Subject: | PHP 4.0 Bug #3931: Several compiler warnings | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17257@lists.php.net to get a copy of this message | ||
From: ime@iae.nl
Operating system: Linux 2.2.14
PHP version: 4.0 Latest CVS (26/03/2000)
PHP Bug Type: Compile Warning
Bug description: Several compiler warnings
[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