Novel idea I'm surprised nobody else has suggested:
Add lint
(or any similar tool) integration to Tools menu. Seems to me that "the oldest gotcha in the C book" would certainly be flagged down by something like lint
, along with several similar problems.