APR_POOL_DEBUG: minor bug
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-10-29 23:12:13 CET
In apr/include/apr_pools.h:
* When no debug level was specified, assume general debug mode.
The second #if is trying to say "if APR_POOL_DEBUG is blank" but it doesn't work: if it is blank, then the preprocessor complains with "operator '!=' has no left operand" (GCC 3.2).
#if (APR_POOL_DEBUG != 0) && (APR_POOL_DEBUG - 0 == 0)
I think the following is one correct solution:
#if (APR_POOL_DEBUG - APR_POOL_DEBUG - 1) == +1
(Of course there is a simple way to work around the bug: just use
- Julian
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.