Re: XML changes broke assert-enabled vcbuild

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>
Subject: Re: XML changes broke assert-enabled vcbuild
Date: 2007-02-13 16:29:48
Message-ID: 200702131629.l1DGTmX08775@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:
> Tom Lane wrote:
> > Magnus Hagander <magnus(at)hagander(dot)net> writes:
> > > From what I can tell, this is because the Assert() puts code (the
> > > do {} loop) *before* the declaration of StringInfoData buf, which
> > > is not permitted.
> >
> > This will fail on every ANSI-C compiler, not just vc. Please fix.
>
> We seem to have very poor coverage of such compilers in the build farm,
> it seems. Is the vcbuild ready to support a regular build farm run
> yet?
>
> It turns out that gcc warns about it anyway. Does anyone have some sort
> of clever recipe to catch warnings more easily than by carefully
> reading the make output or manually grepping build log files or
> something?

Yes, I run /src/tools/pgtest, which shows the warning lines at the end,
after the regression tests are run.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-02-13 16:30:17 Re: XML changes broke assert-enabled vcbuild
Previous Message Bruce Momjian 2007-02-13 16:26:57 Re: Have psql show current sequnce values - (Resubmission)