Re: pgsql: Remove dependency on HeapTuple from predicate locking functions.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Remove dependency on HeapTuple from predicate locking functions.
Дата
Msg-id 27300.1580240388@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Remove dependency on HeapTuple from predicate locking functions.  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-committers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Wed, Jan 29, 2020 at 4:05 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There is absolutely no question that the original coding is illegal
>> per spec, and it isn't even a particularly useful shorthand; so why
>> can't we get even a warning about it?

> $ cc -c -Wpedantic test.c
> test.c:2:12: warning: void function 'g' should not return void
> expression [-Wpedantic]
> void g() { return f(); }
>            ^      ~~~
> 1 warning generated.

> Many other constructs in PostgreSQL are rejected by that switch,
> though, and I don't see a way to ask for just that one warning.

Yeah, -Wpedantic is a little *too* pedantic I'm afraid.  Oh well.

            regards, tom lane



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Remove dependency on HeapTuple from predicate locking functions.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix dangling pointer in EvalPlanQual machinery.