pgsql: Add missing "static" qualifier.

Started by Tom Laneover 10 years ago4 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Add missing "static" qualifier.

Per buildfarm member pademelon.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/99a9d6d563f389ad8137984aac13c9c0bd37cb66

Modified Files
--------------
contrib/postgres_fdw/deparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#2Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#1)
Re: pgsql: Add missing "static" qualifier.

On Fri, Feb 12, 2016 at 11:20 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Add missing "static" qualifier.

Per buildfarm member pademelon.

Gah. Sorry I keep missing these.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#2)
Re: pgsql: Add missing "static" qualifier.

Robert Haas <robertmhaas@gmail.com> writes:

On Fri, Feb 12, 2016 at 11:20 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Add missing "static" qualifier.

Per buildfarm member pademelon.

Gah. Sorry I keep missing these.

It's a pain that gcc won't warn about it. On the other hand, it's
probably only neatnik-ism on my part to care; I do not know of any
compilers that would actually give an error. It only seems worth
fixing to me because whether a function is static or not is important
information, so I like functions to be accurately labeled.

regards, tom lane

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#4Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#3)
Re: pgsql: Add missing "static" qualifier.

On Fri, Feb 12, 2016 at 1:19 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Robert Haas <robertmhaas@gmail.com> writes:

On Fri, Feb 12, 2016 at 11:20 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Add missing "static" qualifier.

Per buildfarm member pademelon.

Gah. Sorry I keep missing these.

It's a pain that gcc won't warn about it. On the other hand, it's
probably only neatnik-ism on my part to care; I do not know of any
compilers that would actually give an error. It only seems worth
fixing to me because whether a function is static or not is important
information, so I like functions to be accurately labeled.

Yeah, I agree. I like it to be labeled correctly, too. I just keep
forgetting to check for it when reviewing, and people keep sending me
patches that do it incorrectly, and then I find out that I've muffed
it again when I see your commit. It would certainly be nice if gcc
had a warning for this.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers