On Thu, 28 Aug 2008, Dina wrote:
> Is adding lint directives the only way to fix it?  I see the
> precedent elsewhere in the file prior to your changes.
> I've heard it said from some people that They(TM) in Solaris
> don't like the use of lint directives to shut up lint.  But
> if that's the only thing that works, then so be it.
> Anyway, there are varying (and conflicting) opinions about how
> to de-lint from my experiences.
> Otherwise, LGTM.
> D.

Proper casting gets rid of many lint type errors and avoids lint overrides.  
For the lint error I get though, only this works, AFAIK:
/* LINTED E_BAD_PTR_CAST_ALIGN */
That's because I'm purposely casting a uchar_t* into a uint32_t* or uint64_t*. 
This casting works OK on x86, but not SPARC.
--
This message posted from opensolaris.org

Reply via email to