diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-01-30 18:25:55 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-01-30 18:26:12 -0500 |
commit | a069218163704c44a8996e7e98e765c56e2b9c8e (patch) | |
tree | 405ddea4ac666ec667c0ad46a50d29c9b1e16ed7 /src/backend/utils/adt/jsonfuncs.c | |
parent | 74618e77b43cfce670b4725d5b9a300a2afd12d1 (diff) | |
download | postgresql-a069218163704c44a8996e7e98e765c56e2b9c8e.tar.gz postgresql-a069218163704c44a8996e7e98e765c56e2b9c8e.zip |
In jsonb_plpython.c, suppress warning message from gcc 10.
Very recent gcc complains that PLyObject_ToJsonbValue could return
a pointer to a local variable. I think it's wrong; but the coding
is fragile enough, and the savings of one palloc() minimal enough,
that it seems better to just do a palloc() all the time. (My other
idea of tweaking the if-condition doesn't suppress the warning.)
Back-patch to v11 where this code was introduced.
Discussion: https://postgr.es/m/21547.1580170366@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions