aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-01-30 18:25:55 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-01-30 18:26:13 -0500
commita4484a6489291d3160767d57ab538f1de6698c21 (patch)
tree6b4070cf5c2add33ac483c776b42aaaa2e3cf501 /src/backend/commands/variable.c
parent1fcf62e0b837c1b814a86f3abf92ad4d36ca30e6 (diff)
downloadpostgresql-a4484a6489291d3160767d57ab538f1de6698c21.tar.gz
postgresql-a4484a6489291d3160767d57ab538f1de6698c21.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/commands/variable.c')
0 files changed, 0 insertions, 0 deletions