[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts th
From: |
Ned Konz |
Subject: |
Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing |
Date: |
Mon, 13 Dec 2004 11:22:06 -0800 |
User-agent: |
KMail/1.7.1 |
On Sunday 12 December 2004 9:40 pm, Nathan Smith wrote:
> A feature I'm requesting is that the compiler generate a warning for
> control statements that don't do anything.
You might take a look at splint, an open-source lint that also does things
that make more of a difference for bigger systems (like tracking memory
allocation and deallocation).
I use it on my PIC C code, and it has helped.
http://www.splint.org
It took a while to set up (getting the command line right to keep it from
complaining too much), and it can help to annotate your code with special
comments that act as hints to Splint.
--
Ned Konz
http://bike-nomad.com