Re: additional GCC warnings

Поиск
Список
Период
Сортировка
Искать
От
Neil Conway
Тема
Re: additional GCC warnings
Дата
Msg-id
1098062556.22986.116.camel@localhost.localdomain
Ответ на
Список
Дерево обсуждения
additional GCC warnings Neil Conway <neilc@samurai.com>
Re: additional GCC warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: additional GCC warnings Neil Conway <neilc@samurai.com>
Re: additional GCC warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: additional GCC warnings Neil Conway <neilc@samurai.com>
Re: additional GCC warnings "Jeroen T. Vermeulen" <jtv@xs4all.nl>
Re: additional GCC warnings Peter Eisentraut <peter_e@gmx.net>
On Mon, 2004-10-18 at 03:50, Tom Lane wrote:
> > -Wmissing-declarations ("Warn if a global function is defined without a 
> > previous declaration.")
> 
> Hm?  We have always used that one.

We've always used -Wmissing-prototypes. The documentation states that
-Wmissing-prototypes instructs GCC to:
       Warn if a global function is defined without a previous       prototype declaration. This warning is issued even if the       definition itself provides a prototype. The aim is to detect       global functions that fail to be declared in header files.       
Whereas -Wmissing-declarations does:
       Warn if a global function is defined without a previous       declaration. Do so even if the definition itself provides a       prototype. Use this option to detect global functions that are       not declared in header files.

Which doesn't make the difference in behavior between the two options
clear to me. Can anyone clarify this?

BTW, are these changes appropriate for 8.0?

-Neil



В списке pgsql-hackers по дате отправления
От: Neil Conway
Дата:
От: Tom Lane
Дата:
FAQ