tech-userlevel archive

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

Re: why cast to char* through void*



On Thu, Jul 02, 2009 at 01:42:56PM -0400, Christos Zoulas wrote:
> On Jul 2, 12:30pm, woods%planix.com@localhost ("Greg A. Woods") wrote:
> -- Subject: Re: why cast to char* through void*
> 
> | As I said, the cast through void* is not necessary here on at least i386
> | neither for generating the correct result, nor for shutting up GCC.
> 
> Did you try it? It breaks lint. Yes, lint is broken and should not complain
> in that case, but until it is fixed...

...the file should not be linted.  The cast through (void *) will disguise
all kinds of worse evil.

-- 
Thor Lancelot Simon                                        
tls%rek.tjls.com@localhost
    "Even experienced UNIX users occasionally enter rm *.* at the UNIX
     prompt only to realize too late that they have removed the wrong
     segment of the directory structure." - Microsoft WSS whitepaper


Home | Main Index | Thread Index | Old Index