forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc77f6f5
committed
Fix cases of discarding result from list API functions
Two cases violated list APIs by throwing away the return value. Whilethe code was technically correct, it relied on internal knowledge ofthe list implementation, and the code wasn't really gaining anythingthat way. It is planned to make this a compiler warning in thefuture, so just fix these cases by assigning the return valueproperly.Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://www.postgresql.org/message-id/flat/e3753562-99cd-b65f-5aca-687dfd1ec2fc@2ndquadrant.com1 parentec29427 commitc77f6f5
2 files changed
+2
-3
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
269 |
| - | |
| 269 | + | |
270 | 270 |
| |
271 | 271 |
| |
272 | 272 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1475 | 1475 |
| |
1476 | 1476 |
| |
1477 | 1477 |
| |
1478 |
| - | |
1479 |
| - | |
| 1478 | + | |
1480 | 1479 |
| |
1481 | 1480 |
| |
1482 | 1481 |
| |
|
0 commit comments
Comments
(0)