Add pg_nodiscard decorations to some functions
Peter Eisentraut <peter@eisentraut.org>
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 <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/e3753562-99cd-b65f-5aca-687dfd1ec2fc@2ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/nodes/pg_list.h | modified | +31 −31 |
| src/include/utils/palloc.h | modified | +2 −2 |
Discussion
- warn_unused_results 7 messages · 2020-10-17 → 2020-11-11