Re: additional GCC warnings

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема Re: additional GCC warnings
Дата
Msg-id 20041018114708.GE73992@xs4all.nl
обсуждение исходный текст
Ответ на Re: additional GCC warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: additional GCC warnings  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Using ALTER TABLESPACE in pg_dump
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: Open Items