git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 74618e7) | patch
In jsonb_plpython.c, suppress warning message from gcc 10.
2020年1月30日 23:25:55 +0000 (18:25 -0500)
2020年1月30日 23:26:12 +0000 (18:26 -0500)
commit a069218163704c44a8996e7e98e765c56e2b9c8e
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
contrib/jsonb_plpython/jsonb_plpython.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /