pgsql: Add casts to simplehash.h to silence C++ warnings.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Add casts to simplehash.h to silence C++ warnings.
Дата
Msg-id E1oqbVN-000GWB-2D@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add casts to simplehash.h to silence C++ warnings.

Casting the result of palloc etc. to the intended type is more per
project style anyway.

(The fact that cpluspluscheck doesn't notice these problems is
because it doesn't expand any macros, which seems like a troubling
shortcoming.  Don't have a good idea about improving that.)

Back-patch to v13, which is as far as the patch applies cleanly;
doesn't seem worth working harder.

David Geier

Discussion: https://postgr.es/m/aa5d88a3-71f4-3455-11cf-82de0372c941@gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/725cd4d2e4819056993ce32336ea130473eb02a1

Modified Files
--------------
src/include/lib/simplehash.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Straighten include order in guc-file.l
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Resolve partition strategy during early parsing