apr_pools: fix __attribute__((nonnull)) warning in [pre_]cleanup_register.

Since apr_[pre_]cleanup_register() functions are declared ((nonnull)) for
plain_cleanup_fn and child_cleanup_fn, the compiler (gcc-9 here) issues a
warning when we check them for !NULL is the code.

To preserve APR_POOL_DEBUG checks still with compilers that don't support
this __attribute__, let's work around this by checking NULL values afterward
for c, c->plain_cleanup_fn and c->child_cleanup_fn.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1883749 13f79535-47bb-0310-9956-ffa450edef68
1 file changed