Dan Anderson wrote: > 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. >
You can cast through a void * to eliminate the error. -- Garrett > -- > This message posted from opensolaris.org > _______________________________________________ > crypto-discuss mailing list > crypto-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/crypto-discuss >