Re: postgreSQL-8.0.1 configure --enable-thread-safety with - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: postgreSQL-8.0.1 configure --enable-thread-safety with
Date
Msg-id 200503111532.j2BFWQD17268@candle.pha.pa.us
Whole thread Raw
In response to Re: postgreSQL-8.0.1 configure --enable-thread-safety with  (Neil Conway <neilc@samurai.com>)
List 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 by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Explain Analyze mode
Next
From: Bruce Momjian
Date:
Subject: Re: postgreSQL-8.0.1 configure --enable-thread-safety with