jwoolley 02/05/05 15:24:41
Modified: memory/unix apr_pools.c
Log:
Since we're using -Wmissing-prototypes, we were getting this warning:
apr_pools.c:584: warning: no previous prototype for `apr_pcalloc'
Normally this prototype would go in the header, but it was explicitly
removed from the header because code built today should not use this
function. Its non-macro implementation only exists for binary backward
compatibility. So as long as we export the symbol correctly, the pre-built
code already knows how to pull it in (because this prototype WAS in the
header when that code was built), so all is well with the world.
Revision Changes Path
1.167 +1 -0 apr/memory/unix/apr_pools.c
Index: apr_pools.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_pools.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -u -r1.166 -r1.167
--- apr_pools.c 5 May 2002 02:06:49 -0000 1.166
+++ apr_pools.c 5 May 2002 22:24:41 -0000 1.167
@@ -580,6 +580,7 @@
#undef apr_pcalloc
#endif
+APR_DECLARE(void *) apr_pcalloc(apr_pool_t *pool, apr_size_t size);
APR_DECLARE(void *) apr_pcalloc(apr_pool_t *pool, apr_size_t size)
{
void *mem;