Re: additional GCC warnings

From: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: additional GCC warnings
Date: 2004-10-18 11:47:08
Message-ID: 20041018114708.GE73992@xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2004-10-18 11:58:31 Re: Open Items
Previous Message Bruce Momjian 2004-10-18 11:40:15 Using ALTER TABLESPACE in pg_dump