Re: [PATCH] __attribute_malloc__ for malloc-like functions
| From: | Rasmus Lerdorf | Date: | Thu, 28 Aug 2003 17:17:39 +0000 |
| Subject: | Re: [PATCH] __attribute_malloc__ for malloc-like functions | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4235@lists.php.net to get a copy of this message | ||
What were you saying about non-portable compiler tricks the other day?
10:15am riddler:~/php43> make
/bin/sh /home/rasmus/php43/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/zlib/
-I/home/rasmus/php43/ext/zlib/
-DPHP_ATOM_INC -I/home/rasmus/php43/include -I/home/rasmus/php43/main -I/home/rasmus/php43
-I/home/rasmus/php43/Zend -I/usr/local/include
-I/usr/local/include/freetype2 -I/home/rasmus/php43/TSRM -DSKIP_PATH_CHECKS -g -O2 -Wall
-prefer-non-pic -c
/home/rasmus/php43/ext/zlib/zlib.c -o ext/zlib/zlib.lo
In file included from /home/rasmus/php43/main/php.h:34,
from /home/rasmus/php43/ext/zlib/zlib.c:28:
/home/rasmus/php43/Zend/zend.h:305: argument format specified for non-function `error_function'
/home/rasmus/php43/Zend/zend.h:306: argument format specified for non-function
`printf_function'
/home/rasmus/php43/Zend/zend.h:438: argument format specified for non-function `zend_printf'
/home/rasmus/php43/Zend/zend.h:445: argument format specified for non-function `zend_error_cb'
/home/rasmus/php43/ext/zlib/zlib.c: In function `zif_gzcompress':
/home/rasmus/php43/ext/zlib/zlib.c:440: warning: implicit declaration of function `compress2'
/home/rasmus/php43/ext/zlib/zlib.c:451: warning: implicit declaration of function `zError'
/home/rasmus/php43/ext/zlib/zlib.c:451: warning: format argument is not a pointer (arg 4)
/home/rasmus/php43/ext/zlib/zlib.c: In function `zif_gzuncompress':
/home/rasmus/php43/ext/zlib/zlib.c:508: warning: format argument is not a pointer (arg 4)
/home/rasmus/php43/ext/zlib/zlib.c: In function `zif_gzdeflate':
/home/rasmus/php43/ext/zlib/zlib.c:578: warning: format argument is not a pointer (arg 4)
/home/rasmus/php43/ext/zlib/zlib.c: In function `zif_gzinflate':
/home/rasmus/php43/ext/zlib/zlib.c:660: warning: format argument is not a pointer (arg 4)
/home/rasmus/php43/ext/zlib/zlib.c: In function `zif_gzencode':
/home/rasmus/php43/ext/zlib/zlib.c:821: warning: int format, long int arg (arg 4)
/home/rasmus/php43/ext/zlib/zlib.c:858: warning: format argument is not a pointer (arg 4)
/home/rasmus/php43/ext/zlib/zlib.c:865: warning: format argument is not a pointer (arg 4)
/home/rasmus/php43/ext/zlib/zlib.c:903: warning: format argument is not a pointer (arg 4)
*** Error code 1
Stop in /home/rasmus/php43.
10:15am riddler:~/php43> gcc --version
2.95.3