[PATCH] clean up compiler warnings in libc/stdio/vfprintf.c
Rob Landley
rob at landley.net
Thu Mar 8 04:51:47 PST 2007
On Wednesday 07 March 2007 7:42 pm, Al Stone wrote:
> Silence some warnings about pointer signedness in
> libc/stdio/vfprintf.c.
>
> Signed-off-by: Al Stone <ahs3 at fc.hp.com>
>
> --
> Ciao,
> al
> ----------------------------------------------------------------------
> Al Stone Alter Ego:
> Open Source and Linux R&D Debian Developer
> Hewlett-Packard Company http://www.debian.org
> E-mail: ahs3 at fc.hp.com ahs3 at debian.org
> ----------------------------------------------------------------------
>
> diff --exclude .svn -Naur svn/libc/stdio/_vfprintf.c
uClibc-ia64-current/libc/stdio/_vfprintf.c
> --- svn/libc/stdio/_vfprintf.c 2007-02-07 17:39:24.000000000 -0700
> +++ uClibc-ia64-current/libc/stdio/_vfprintf.c 2007-03-07
17:25:41.000000000 -0700
> @@ -1216,7 +1216,7 @@
> #define _PPFS_init _ppfs_init
> #define OUTPUT(F,S) fputs_unlocked(S,F)
> /* #define _outnstr(stream, string, len) __stdio_fwrite(string, len,
stream) */
> -#define _outnstr(stream, string, len) ((len > 0) ? __stdio_fwrite(string,
len, stream) : 0)
> +#define _outnstr(stream, string, len) ((len > 0) ? __stdio_fwrite((unsigned
char *)string, len, stream) : 0)
> #define FP_OUT _fp_out_narrow
So _outnstr(stream, 42, 42) wouldn't get noticed as an error?
Is there any kind of --shutup-about-signedness-of-char-already flag we can
pass to the darn compiler?
Rob
--
Vista: Windows Millenium Second Edition
More information about the uClibc
mailing list