Re: postgreSQL-8.0.1 configure --enable-thread-safety with

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: postgreSQL-8.0.1 configure --enable-thread-safety with
Дата
Msg-id 200503111532.j2BFWQD17268@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: postgreSQL-8.0.1 configure --enable-thread-safety with  (Neil Conway <neilc@samurai.com>)
Список pgsql-hackers
Neil Conway wrote:
> Bruce Momjian wrote:
> > The attached patch should remove the warnings but I am not applying it
> > because a non-static/extern global variable should be fine in C code.
> 
> What's the harm in applying it? Variables and functions not used outside 
> the compilation unit in which they are defined _should_ be marked 
> static; it's not required, but I think it's good style.

I didn't want to do it because I thought we would then have to do it in
a lot of places, but I see pg_ctl.c does it, so I applied the patch, and
fixed initdb.c to be 'static-clean' too.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Explain Analyze mode
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: postgreSQL-8.0.1 configure --enable-thread-safety with