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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Vikram Kalsi <vikramkalsi(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgreSQL-8.0.1 configure --enable-thread-safety with
Date: 2005-03-11 15:32:26
Message-ID: 200503111532.j2BFWQD17268@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-03-11 15:36:07 Re: postgreSQL-8.0.1 configure --enable-thread-safety with
Previous Message Oleg Bartunov 2005-03-11 15:28:03 Re: Explain Analyze mode