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 Jul 2, 12:30pm, ("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...

/usr/src/lib/libutil/login_cap.c(521): warning: pointer casts may be 
troublesome [247]


Home | Main Index | Thread Index | Old Index