Re: clang's -Wmissing-variable-declarations shows some shoddy programming

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: clang's -Wmissing-variable-declarations shows some shoddy programming
Дата
Msg-id 20131219211144.GF1690@momjian.us
обсуждение исходный текст
Ответ на clang's -Wmissing-variable-declarations shows some shoddy programming  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: clang's -Wmissing-variable-declarations shows some shoddy programming
Список pgsql-hackers
On Sat, Dec 14, 2013 at 04:52:28PM +0100, Andres Freund wrote:
> Hi,
> 
> Compiling postgres with said option in CFLAGS really gives an astounding
> number of warnings. Except some bison/flex generated ones, none of them
> looks acceptable to me.
> Most are just file local variables with a missing static and easy to
> fix. Several other are actually shared variables, where people simply
> haven't bothered to add the variable to a header. Some of them with
> comments declaring that fact, others adding longer comments, even others
> adding longer comments about that fact.
> 
> I've attached the output of such a compilation run for those without
> clang.

I have fixed the binary_upgrade_* variables defines, and Heikki has
fixed some other cases.  Can you rerun the test against git head and
post the updated output?  Thanks.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: clang's -Wmissing-variable-declarations shows some shoddy programming
Следующее
От: Robert Haas
Дата:
Сообщение: Re: preserving forensic information when we freeze