On the Effectiveness of nonnull: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
I add [https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html annotations] to my [[C]] programs pretty religiously, making most frequent use of: | I add [https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html annotations] to my [[C]] programs pretty religiously, making most frequent use of: | ||
* <tt>const</tt> and <tt>pure</tt> -- facilitate | * <tt>const</tt> and <tt>pure</tt> -- facilitate hoisting and memoization | ||
* <tt>malloc</tt> -- helps aliasing analysis and warning generation | * <tt>malloc</tt> -- helps aliasing analysis and warning generation | ||
* <tt>warn_unused_result</tt> -- warning generation | * <tt>warn_unused_result</tt> -- warning generation | ||
| Line 72: | Line 72: | ||
ps i ended up getting rid of the copy when i fixed this, too. w00t! =] | ps i ended up getting rid of the copy when i fixed this, too. w00t! =] | ||
''' | '''previously: "[[Four_questions_for_a_Wednesday|four questions for a wednesday]]" 2021-10-13''' | ||
[[Category:Blog]] | [[Category:Blog]] | ||