Re: additional GCC warnings - Mailing list pgsql-hackers

From Jeroen T. Vermeulen
Subject Re: additional GCC warnings
Date
Msg-id 20041018114708.GE73992@xs4all.nl
Whole thread Raw
In response to Re: additional GCC warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: additional GCC warnings
List pgsql-hackers
On Sun, Oct 17, 2004 at 01:50:46PM -0400, Tom Lane wrote:
> > -Wdeclaration-after-statement (Recent versions of GCC allow declarations 
> > and statements to be intermixed in C; enabling this flag would enforce 
> > the current convention of avoiding this style.)
> 
> Ick.  If the default is to allow that, then yes we need a warning.
> I'd be fairly annoyed if it's not an error, in fact.
IIRC it's a new feature in C99.  If that is the case, you may want to
tell gcc simply to compile an older C dialect and get errors for all
such newfangled code.


Jeroen



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Using ALTER TABLESPACE in pg_dump
Next
From: Fabien COELHO
Date:
Subject: Re: Open Items