pgsql: Remove extraneous semicolon from uses of relptr_declare().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove extraneous semicolon from uses of relptr_declare().
Дата
Msg-id E1cE4Y4-0000Cx-EN@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix typo in new message in configure.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Add support for restrictive RLS policies