pgsql: Add compiler hints to PLy_elog()

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add compiler hints to PLy_elog()
Date: 2017-11-29 15:02:27
Message-ID: E1eK3sZ-0004RH-3g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add compiler hints to PLy_elog()

Decorate PLy_elog() in a similar way as elog(), to give compilers and
static analyzers hints in which cases it does not return.

Reviewed-by: John Naylor <jcnaylor(at)gmail(dot)com>

Branch
------
master

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

Modified Files
--------------
src/pl/plpython/plpy_elog.c | 2 +-
src/pl/plpython/plpy_elog.h | 28 +++++++++++++++++++++++++++-
2 files changed, 28 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2017-11-29 15:49:26 Re: pgsql: Make memset() use sizeof() rather than re-compute size
Previous Message Robert Haas 2017-11-29 14:25:44 pgsql: Update typedefs.list and re-run pgindent