64 bit compilation warnings (int/unsigned long mismatch) PHP_4_3
| From: | Magnus Määttä | Date: | Thu, 15 Jan 2004 00:48:07 +0000 |
| Subject: | 64 bit compilation warnings (int/unsigned long mismatch) PHP_4_3 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-7119@lists.php.net to get a copy of this message | ||
Hello!
I just fixed my alpha (running Tru64 UNIX 5.1) so I could compile PHP on it
again and checked for ptrmismatch'es in PHP_4_3 and found these.. Maybe they
are safe to ignore or maybe not.
Configure line:
./configure --disable-all
I'll check HEAD too in a few and report my findings for it too..
cc: Warning: /data/cvs/php/php-src/ext/standard/file.c, line 2316: In this
statement, the referenced type of the pointer value
"(&buf_len)" is "int", which is not compatible with "unsigned
long".
(ptrmismatch)
if (php_stream_get_line(stream, buf, len, &buf_len) == NULL) {
-------------^
cc: Warning: /data/cvs/php/php-src/ext/standard/file.c, line 2256: In this
statement, the referenced type of the pointer value
"(&buf_len)" is "int", which is not compatible with "unsigned
long".
(ptrmismatch)
if (php_stream_get_line(stream, buf, len, &buf_len) == NULL) {
---------^
/Magnus
--
The first thing we do, let's kill all the lawyers.
-- Wm. Shakespeare, "Henry VI", Part IV