In jsonb_plpython.c, suppress warning message from gcc 10.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/jsonb_plpython/jsonb_plpython.c | modified | +1 −6 |
Discussion
- New compiler warning in jsonb_plpython.c 1 message · 2020-01-28