forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita4484a6
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 parent1fcf62e commita4484a6
1 file changed
+1
-6
lines changedLines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
416 |
| - | |
417 | 416 |
| |
418 | 417 |
| |
419 | 418 |
| |
| |||
424 | 423 |
| |
425 | 424 |
| |
426 | 425 |
| |
427 |
| - | |
428 |
| - | |
429 |
| - | |
430 |
| - | |
431 |
| - | |
| 426 | + | |
432 | 427 |
| |
433 | 428 |
| |
434 | 429 |
| |
|
0 commit comments
Comments
(0)