forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc617aea
committed
Add pg_nodiscard function declaration specifier
pg_nodiscard means the compiler should warn if the result of afunction call is ignored. The name "nodiscard" is chosen in alignmentwith (possibly future) C and C++ standards. It maps to the GCCattribute warn_unused_result.Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://www.postgresql.org/message-id/flat/e3753562-99cd-b65f-5aca-687dfd1ec2fc@2ndquadrant.com1 parentc77f6f5 commitc617aea
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
114 | 126 |
| |
115 | 127 |
| |
116 | 128 |
| |
|
0 commit comments
Comments
(0)