forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita069218
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 parent74618e7 commita069218
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
| |||
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 423 | + | |
429 | 424 | | |
430 | 425 | | |
431 | 426 | | |
| |||
0 commit comments
Comments
(0)