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




Home | Main Index | Thread Index | Old Index