[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: Branko Čibej <brane_at_wandisco.com>
Date: Thu, 14 Nov 2013 18:13:27 +0100

On 14.11.2013 17:50, Stefan Fuhrmann wrote:
> On Wed, Nov 13, 2013 at 1:19 PM, Julian Foad
> <julianfoad_at_btopenworld.com <mailto:julianfoad_at_btopenworld.com>> wrote:
>
> > 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.
>
>
> As it turns out, APR_SIZE_MAX can't be used either
> nor anything based on sizeof(). So, I simply removed
> the preprocessor code entirely in r1541924. Compilers
> might complain about it being "always true" on 32 bit
> machines.

What's wrong with

# if sizeof(apr_size_t) > sizeof(apr_uint32_t)

I'd expect that to work ...

-- Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-11-14 18:14:21 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.