From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Remove extraneous semicolon from uses of relptr_declare(). |
Date: | 2016-12-06 01:28:00 |
Message-ID: | E1cE4Y4-0000Cx-EN@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Remove extraneous semicolon from uses of relptr_declare().
If we're going to write a semicolon after calls of relptr_declare(),
then we don't need one inside the macro, and removing it suppresses
"empty declaration" warnings from pickier compilers (eg pademelon).
While at it, we might as well use relptr() inside relptr_declare(),
because otherwise that macro would likely go unused altogether.
Also improve the comment, which I for one found unclear,
and provide a specific example of intended usage.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/3ebf2b45454a5fb74e6516ab4915f7a3d44d544f
Modified Files
--------------
src/include/utils/relptr.h | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2016-12-06 02:20:11 | Re: [COMMITTERS] pgsql: Add support for restrictive RLS policies |
Previous Message | Heikki Linnakangas | 2016-12-05 22:30:43 | pgsql: Fix typo in new message in configure. |