Add pg_nodiscard decorations to some functions
authorPeter Eisentraut <[email protected]>
Sat, 17 Oct 2020 06:38:39 +0000 (08:38 +0200)
committerPeter Eisentraut <[email protected]>
Wed, 11 Nov 2020 10:00:27 +0000 (11:00 +0100)
commita378ba49a5cfec073d885f4943e1c7e4b83abd3b
tree196b7981e5e4b1fc45a69e5ebc45dafcff35d4be
parentc617aea6acdd9057a14d91ff294905b1b5509348
Add pg_nodiscard decorations to some functions

Especially for the list API such as lappend() forgetting to assign the
return value is a common problem.

Reviewed-by: Michael Paquier <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/e3753562-99cd-b65f-5aca-687dfd1ec2fc@2ndquadrant.com
src/include/nodes/pg_list.h
src/include/utils/palloc.h