Fix cases of discarding result from list API functions

Peter Eisentraut <peter@eisentraut.org>

Commit: c77f6f50e4187bed38d1d36ae16b0c248e286d15
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2020-11-11T07:03:51Z
Releases: 14.0
Fix cases of discarding result from list API functions

Two cases violated list APIs by throwing away the return value.  While
the code was technically correct, it relied on internal knowledge of
the list implementation, and the code wasn't really gaining anything
that way.  It is planned to make this a compiler warning in the
future, so just fix these cases by assigning the return value
properly.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/e3753562-99cd-b65f-5aca-687dfd1ec2fc@2ndquadrant.com

Files

PathChange+/−
src/backend/commands/lockcmds.c modified +1 −1
src/backend/parser/analyze.c modified +1 −2

Discussion