Subject: Re: CVS commit: src/usr.bin/xlint/lint1
To: Havard Eidnes <he@NetBSD.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 10/18/2006 06:42:05
On Oct 17, 2006, at 11:40 PM, Havard Eidnes wrote:
>>> This should fix some of the lint issues in proplib on some of
>>> our platforms.
>>
>> ...and countless other bits of code that have been "fixed" over the
>> years by casting constant arguments to one type or another.
>
> Yep. Do you have suggestions for how to find these? Coax lint
> into helping us? ;-)
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...
-- thorpej