On Thursday 06 January 2011, Plüm, Rüdiger, VF-Group wrote:
> > > {
> > >
> > > - request_rec *rp = apr_pcalloc(r->pool, sizeof(*r));
> > > + apr_pool_t *pool;
> > > +
> > > + apr_pool_create(&pool, c->pool);
> > > +
> > > + request_rec *rp = apr_pcalloc(pool, sizeof(*r));
> > >
> > >
> >
> >
> >
> > MSVC idiosyncrasy, you cannot declare rp after doing
> > something, in this
> > case "something" is calling apr_pool_create.
>
> Fixed in r1055771.
BTW, gcc has -Wdeclaration-after-statement to catch these things.
Should we add that to the default warnings enabled in maintainer mode?