Proof positive the "signedness of char *" warning is useless.

Chuck Meade chuckmeade at mindspring.com
Wed Nov 30 16:10:43 UTC 2005


> On Wednesday 30 November 2005 08:22, Chuck Meade wrote:
> > > ive seen one or two (not in busybox), but just when the char was used
> > > like an 8bit int instead of holding an actual char
> > > -mike
> >
> > Exactly.  It sounds like a good approach might be eliminating the
> > warnings when the chars are being used as string or character data,
> > as in the filename issue Rob mentioned -- and leaving the warnings
> > when they are being used as an 8-bit int, for computation.
> 
> So when the programmer didn't know what they were doing, and nobody else 
> spotted it on review, and it hasn't shown up in testing, then the warning 
> might potentially be useful assuming we first go through our entire codebase 
> to remove the (vast majority of) spurious warnings in an attemp to humor the 
> stupid compiler.
> 
> I'm not doing it.  I'm looking at how to shut the warning up with a -W 
> switch...

There is also that approach :)

Chuck





More information about the busybox mailing list