Free Software programmer
Subscribe This blog existed before my current employment, and obviously reflects my own opinions and not theirs. This work is licensed under a Creative Commons Attribution 2.1 Australia License.
Categories of this blog:
Older issues: |
Mon, 07 Apr 2008C inline functions not in headersI just appreciated an interesting side-effect of slapping "inline" on static functions within .c files. You don't get a warning when they become unused. This breaks my normal method for code cleanup (in this case, the tun driver). So unless you have evidence otherwise, plase trust the compiler to inline static functions appropriately and don't label them inline. (And remember: inline is the register keyword for the 21st century.) [/tech] permanent link |