Subject: Re: CVS commit: src/usr.bin/xlint/lint1
To: Joerg Sonnenberger <joerg@britannica.bec.de>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 10/18/2006 09:47:25
On Oct 18, 2006, at 7:15 AM, Joerg Sonnenberger wrote:

> 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.

...so make lint test for casts to integral types.

>
> Joerg

-- thorpej