[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1540590 - APR_SIZET_MAX is not defined

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 13 Nov 2013 12:19:10 +0000 (GMT)

> URL: http://svn.apache.org/r1540590

> Added: subversion/trunk/subversion/libsvn_subr/object_pool.c
> ==============================================================================
[...]
> +svn_object_pool__create(...,
> +                        apr_size_t min_unused,
> +                        apr_size_t max_unused, ...)
[...]
> +  /* paranoia limiter code */
> +#if APR_SIZET_MAX > APR_UINT32_MAX

My compiler says:
  warning: "APR_SIZET_MAX" is not defined

Presumably that means this block of code is never compiled.

> +  if (max_unused > APR_UINT32_MAX)
> +    max_unused = APR_UINT32_MAX;
> +  if (min_unused > APR_UINT32_MAX)
> +    min_unused = APR_UINT32_MAX;
> +#endif

Looks like you meant APR_SIZE_MAX.

I am building against APR 1.4.5.

- Julian
Received on 2013-11-13 13:19:51 CET

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.