Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/xlint/lint1




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




Home | Main Index | Thread Index | Old Index