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/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a378ba49a5cfec073d885f4943e1c7e4b83abd3b Modified Files -------------- src/include/nodes/pg_list.h | 62 ++++++++++++++++++++++----------------------- src/include/utils/palloc.h | 4 +-- 2 files changed, 33 insertions(+), 33 deletions(-)
