This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Another glibc fixincl-hack


On 12/2/06, Bruce Korb <bkorb@gnu.org> 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 \
 -c str.c
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: http://gcc.gnu.org/wiki/NewWconversion

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.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]