[PATCH] Avoid some warnings in make check
Ulrich Drepper
drepper@redhat.com
Mon Nov 20 09:41:00 GMT 2000
Jakub Jelinek <jakub@redhat.com> writes:
> This patch kills quite a few warnings during make check (seen on sparc64).
Thanks, I've applied it.
> - What format string modifier should be used for wint_t type arguments?
> Some archs define it as unsigned long int, some as unsigned int...
> This causes most of the warnings not fixed by this patch.
Since this will always be inconsistent we should use %ld and
explicitly cast the parameter to (long int).
> - We should avoid direct casts between void * and int, because at least
> sparc64 gcc warns about those casts. Casting to long in between makes it
> go away.
Same is true for all 64 bit targets. It was always intended to do
this.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list