pgsql: PL/Python: Fix remaining scan-build warnings

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: PL/Python: Fix remaining scan-build warnings
Дата
Msg-id E1eK3sZ-0004RI-3j@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
PL/Python: Fix remaining scan-build warnings

Apparently, scan-build thinks that proc->is_setof can change during
PLy_exec_function().  To make it clearer, save the value in a local
variable.

Also add an assertion to clear another warning.

Reviewed-by: John Naylor <jcnaylor@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c7f5c58e1c6bb250ff7c24970a05e033201be409

Modified Files
--------------
src/pl/plpython/plpy_exec.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Update typedefs.list and re-run pgindent
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: Make memset() use sizeof() rather than re-compute size