pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: PL/Python: Fix remaining scan-build warnings
Date: Wed, 29 Nov 2017 15:02:27 +0000
Message-ID: <E1eK3sZ-0004RI-3j@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1eK3sZ-0004RI-3j@gemulon.postgresql.org>
Permalink:  ../E1eK3sZ-0004RI-3j@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eK3sZ-0004RI-3j@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: PL/Python: Fix remaining scan-build warnings
  In-Reply-To: <E1eK3sZ-0004RI-3j@gemulon.postgresql.org>
  References: <E1eK3sZ-0004RI-3j@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox