Subject: Re: CVS commit: src/usr.bin/xlint/lint1
To: None <source-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: source-changes
Date: 10/18/2006 16:15:23
On Wed, Oct 18, 2006 at 06:42:05AM -0700, Jason Thorpe wrote:
> Actually, I now that I think about it, I think you could coax lint
> into helping... modify lint to issue a warning about a constant that
> is being cast to a type when the constant would have already fit into
> that type's range. Make it a new lint option flag...
I think that can give false warnings as well, e.g. when converting 0 to
a pointer.
Joerg