[PATCH] clean up compiler warnings in libc/stdio/vfprintf.c

Rob Landley rob at landley.net
Thu Mar 8 14:23:08 UTC 2007


On Thursday 08 March 2007 8:05 am, Luciano Miguel Ferreira Rocha wrote:
> On Thu, Mar 08, 2007 at 07:51:47AM -0500, Rob Landley wrote:
> > Is there any kind of --shutup-about-signedness-of-char-already flag we can 
> > pass to the darn compiler?
> > 
> 
> -Wno-pointer-sign?
>   Don't warn for pointer argument passing or assignment with different
>   signedness.

Except that shuts it up for short, int and long as well.

char is weird in that it has _three_ different signednesses: signed, unsigned, 
and just plain "char" which varies from platform to platform.  In my projects 
I feed in something like -funsigned-char (which I prefer over -fsigned-char 
because being 8 bit clean makes things like utf-8 easier).  Things like 
strcat never actually char about the signedness of the characters, and yet 
we're forced to care when doing string manipulations by stupid compiler 
warnings...

Rob
-- 
Vista: Windows Millenium Second Edition



More information about the uClibc mailing list