Hi,

is it normal that a simple compile results more than 130 warnings?

here is my warning results:

zend_language_scanner.c:2714: warning: `yy_last_accepting_state' defined 
but not used
zend_language_scanner.c:2715: warning: `yy_last_accepting_cpos' defined 
but not used
zend_language_scanner.c:2721: warning: `yy_more_flag' defined but not 
used
zend_language_scanner.c:2722: warning: `yy_more_len' defined but not 
used
zend_ini_scanner.c: In function `ini_lex':
zend_ini_scanner.c:818: warning: label `find_rule' defined but not used
./zend_ini_scanner.l: At top level:
zend_ini_scanner.c:1342: warning: `yyunput' defined but not used
zend_list.c: In function `zend_destroy_rsrc_list':
zend_list.c:233: warning: variable `p' might be clobbered by `longjmp' 
or `vfork'
zend_hash.c: In function `zend_hash_compare':
zend_hash.c:1149: warning: `p2' might be used uninitialized in this 
function
main.c: In function `php_request_startup':
main.c:638: warning: variable `retval' might be clobbered by `longjmp' 
or `vfork'
main.c: In function `php_hash_environment':
main.c:1053: warning: `dummy_track_vars_array' might be used 
uninitialized in this function
rfc1867.c: In function `php_mime_split':
rfc1867.c:105: warning: `c' might be used uninitialized in this function
curl.c: In function `curl_write_header':
curl.c:398: warning: `length' might be used uninitialized in this 
function
curl.c: In function `zif_curl_setopt':
curl.c:615: warning: `error' might be used uninitialized in this 
function
ming.c: In function `destroy_SWFFont_resource':
ming.c:1208: warning: implicit declaration of function `destroySWFBlock'
ming.c: In function `zif_swfshape_addfill':
ming.c:1845: warning: `fill' might be used uninitialized in this 
function
ming.c: In function `zif_swfshape_setleftfill':
ming.c:1944: warning: `fill' might be used uninitialized in this 
function
ming.c: In function `zif_swfshape_setrightfill':
ming.c:1997: warning: `fill' might be used uninitialized in this 
function
ming.c: In function `zif_swfshape_drawglyph':
ming.c:2220: warning: `size' might be used uninitialized in this 
function
In file included from /usr/local/mysql/current/include/mysql/mysql.h:77,
                 from php_mysql.c:61:
/usr/local/mysql/current/include/mysql/mysql_version.h:15: warning: 
`MYSQL_UNIX_ADDR' redefined
/usr/src/php4/TSRM/../main/php_config.h:1620: warning: this is the 
location of the previous definition
openssl.c: In function `php_openssl_csr_from_zval':
openssl.c:1253: warning: `filename' might be used uninitialized in this 
function
openssl.c: In function `zif_openssl_csr_sign':
openssl.c:1379: warning: `key' might be used uninitialized in this 
function
openssl.c:1379: warning: `priv_key' might be used uninitialized in this 
function
openssl.c: In function `zif_openssl_pkcs7_verify':
openssl.c:1931: warning: `store' might be used uninitialized in this 
function
openssl.c: In function `zif_openssl_pkcs7_sign':
openssl.c:2150: warning: `outfilename' might be used uninitialized in 
this function
openssl.c: In function `zif_openssl_private_decrypt':
openssl.c:2360: warning: `cryptedbuf' might be used uninitialized in 
this function
openssl.c: In function `zif_openssl_public_decrypt':
openssl.c:2480: warning: `cryptedbuf' might be used uninitialized in 
this function
php_pcre.c: In function `php_pcre_replace':
php_pcre.c:683: warning: `replace_len' might be used uninitialized in 
this function
php_pcre.c:685: warning: `replace' might be used uninitialized in this 
function
php_pcre.c:691: warning: `replace_end' might be used uninitialized in 
this function
posix.c: In function `zif_posix_getpgid':
posix.c:449: warning: implicit declaration of function `getpgid'
posix.c: In function `zif_posix_getsid':
posix.c:478: warning: implicit declaration of function `getsid'
mod_files.c: In function `ps_read_files':
mod_files.c:268: warning: implicit declaration of function `pread'
mod_files.c: In function `ps_write_files':
mod_files.c:299: warning: implicit declaration of function `pwrite'
sockets.c: In function `zif_socket_select':
sockets.c:547: warning: `max_fd' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_bind':
sockets.c:1078: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_recvfrom':
sockets.c:1417: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_sendto':
sockets.c:1511: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_recvmsg':
sockets.c:1585: warning: `iov' might be used uninitialized in this 
function
sockets.c:1588: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_sendmsg':
sockets.c:1735: warning: `iov' might be used uninitialized in this 
function
sockets.c:1736: warning: `php_sock' might be used uninitialized in this 
function
array.c: In function `zif_array_map':
array.c:3064: warning: `key_type' might be used uninitialized in this 
function
html.c: In function `get_next_char':
html.c:314: warning: enumeration value `cs_terminator' not handled in 
switch
html.c:314: warning: enumeration value `cs_8859_1' not handled in switch
html.c:314: warning: enumeration value `cs_cp1252' not handled in switch
html.c:314: warning: enumeration value `cs_8859_15' not handled in 
switch
html.c: In function `determine_charset':
html.c:329: warning: `len' might be used uninitialized in this function
html.c: In function `php_escape_html_entities':
html.c:417: warning: `rep' might be used uninitialized in this function
math.c: In function `zif_bindec':
math.c:712: warning: `fnum' might be used uninitialized in this function
math.c: In function `zif_hexdec':
math.c:712: warning: `fnum' might be used uninitialized in this function
math.c: In function `zif_octdec':
math.c:712: warning: `fnum' might be used uninitialized in this function
math.c: In function `zif_base_convert':
math.c:712: warning: `fnum' might be used uninitialized in this function
math.c: In function `_php_math_basetozval':
math.c:712: warning: `fnum' might be used uninitialized in this function
string.c: In function `zif_strtok':
string.c:921: warning: `tok' might be used uninitialized in this 
function
string.c: In function `zif_pathinfo':
string.c:1210: warning: `opt' might be used uninitialized in this 
function
url_scanner.c: In function `url_adapt':
url_scanner.c:365: warning: enumeration value `STATE_TAG_QVAL1' not 
handled in switch
/home/sas/src/php4/ext/standard/url_scanner_ex.re: In function 
`append_modified_url':
/home/sas/src/php4/ext/standard/url_scanner_ex.re:110: warning: unused 
variable `yyaccept'
/home/sas/src/php4/ext/standard/url_scanner_ex.re:112: warning: label 
`yy10' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:115: warning: label 
`yy9' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:111: warning: label 
`yy7' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:110: warning: label 
`yy5' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:109: warning: label 
`yy3' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:153: warning: label 
`yy2' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:146: warning: label 
`yy1' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re: In function 
`mainloop':
/home/sas/src/php4/ext/standard/url_scanner_ex.re:262: warning: unused 
variable `yyaccept'
/home/sas/src/php4/ext/standard/url_scanner_ex.re:269: warning: unused 
variable `yyaccept'
/home/sas/src/php4/ext/standard/url_scanner_ex.re:279: warning: unused 
variable `yyaccept'
/home/sas/src/php4/ext/standard/url_scanner_ex.re:288: warning: unused 
variable `yyaccept'
/home/sas/src/php4/ext/standard/url_scanner_ex.re:302: warning: label 
`yy76' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:309: warning: label 
`yy75' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:303: warning: label 
`yy72' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:339: warning: label 
`yy59' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:307: warning: label 
`yy57' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:305: warning: label 
`yy56' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:331: warning: label 
`yy47' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:288: warning: label 
`yy43' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:324: warning: label 
`yy39' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:281: warning: label 
`yy35' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:280: warning: label 
`yy33' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:278: warning: label 
`yy29' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:315: warning: label 
`yy27' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:269: warning: label 
`yy23' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:305: warning: label 
`yy19' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:262: warning: label 
`yy17' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:265: warning: label 
`yy16' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:261: warning: label 
`yy14' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:303: warning: label 
`yy13' defined but not used
/home/sas/src/php4/ext/standard/url_scanner_ex.re:298: warning: label 
`yy12' defined but not used
sysvsem.c: In function `zif_sem_remove':
sysvsem.c:405: warning: passing arg 2 of `semctl' makes integer from 
pointer without a cast
sysvsem.c:413: warning: passing arg 2 of `semctl' makes integer from 
pointer without a cast
xmlrole.c:9: warning: `RCSId' defined but not used
xmlparse.c:248: warning: `processInternalParamEntity' declared `static' 
but never defined
zip.c: In function `zif_zip_entry_open':
zip.c:263: warning: assignment makes integer from pointer without a cast
In file included from /usr/local/apache/1.3.20/include/httpd.h:72,
                 from mod_php4.c:32:
/usr/local/apache/1.3.20/include/ap_config.h:1294: warning: 
`XtOffsetOf' redefined
/usr/src/php4/main/php.h:345: warning: this is the location of the 
previous definition
In file included from /usr/local/apache/1.3.20/include/httpd.h:72,
                 from sapi_apache.c:32:
/usr/local/apache/1.3.20/include/ap_config.h:1294: warning: 
`XtOffsetOf' redefined
/usr/src/php4/main/php.h:345: warning: this is the location of the 
previous definition
In file included from php_apache_http.h:6,
                 from php_apache.c:45:
/usr/local/apache/1.3.20/include/ap_config.h:1294: warning: 
`XtOffsetOf' redefined
/usr/src/php4/main/php.h:345: warning: this is the location of the 
previous definition
regexec.c:19: warning: `nope' defined but not used

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to