This is the mail archive of the
mailing list for the GCC project.
Re: Another glibc fixincl-hack
On 12/2/06, Bruce Korb <email@example.com> wrote:
So, perhaps the warnings are amped up too high:
$ gcc -std=gnu99 -O2 -Wall -Werror -Wcast-align -Wconversion -Wmissing-prototypes \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -fno-strict-aliasing \
str.c: In function `foo':
str.c:4: warning: passing arg 1 of `calloc' with different width due to prototype
str.c:4: warning: passing arg 2 of `calloc' with different width due to prototype
Yes, yes they are. -Wconversion is not for general usage, it's for
updating old K&R code. Manuel's project to make it more generally
useful has made it into the mainline for 4.3, though:
I don't think it's a good idea to try to fixinclude around
-Wconversion warnings, and I'm pretty sure mainline won't warn for
this case anyway.