forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit39428be
committed
In jsonb_plpython.c, suppress warning message from gcc 10.
Very recent gcc complains that PLyObject_ToJsonbValue could returna pointer to a local variable. I think it's wrong; but the codingis fragile enough, and the savings of one palloc() minimal enough,that it seems better to just do a palloc() all the time. (My otheridea 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.us1 parent2c56b3a commit39428be
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
| |||
378 | 377 | | |
379 | 378 | | |
380 | 379 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 380 | + | |
386 | 381 | | |
387 | 382 | | |
388 | 383 | | |
| |||
0 commit comments
Comments
(0)