News for hackers. Stuff that matters.
Re:Ways to get screwed by C by ajays on Friday December 10, 2010 @12:44AM (#1990780)
lint(1) [or splint(1)] is your friend.

Or use "gcc -Werror" when compiling.

C is like a sharp knife: in skilled hands, it can do wonders. Unskilled hands end up missing a finger or two.

Re:Ways to get screwed by C by endgame on Friday December 10, 2010 @01:01AM (#1990811)
The problem with -Werror is it causes trouble with autoconf-based scripts: Test programs that should've compiled can fail because of a warning as opposed to an actual error. I prefer to compile with -Wall -Wextra and not commit anything that raises warnings.