Re: additional GCC warnings
От | Neil Conway |
---|---|
Тема | Re: additional GCC warnings |
Дата | |
Msg-id | 1098062556.22986.116.camel@localhost.localdomain обсуждение исходный текст |
Ответ на | Re: additional GCC warnings (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: additional GCC warnings
|
Список | pgsql-hackers |
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 ifthe definition itself provides a prototype. The aim is to detect global functions that fail to be declaredin header files. Whereas -Wmissing-declarations does: Warn if a global function is defined without a previous declaration. Do so even if the definition itself providesa 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 по дате отправления: