This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Another glibc fixincl-hack
Zack Weinberg wrote:
>> So, perhaps the warnings are amped up too high:
>>
>> $ gcc -std=gnu99 -O2 -Wall -Werror -Wcast-align -Wconversion...
>> str.c: In function `foo':
>> str.c:4: warning: passing arg 1 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.....
>
> 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.
OK. I withdraw the proposal. All I know is what I read in the
readily available docs (info/man). The -Wconversion doc says
nothing about intended use. I just knew that it would help
identify value-modifying conversions (per your NewWconversion page).
So, I'll use -Wconversion iff GCC >= 4.3. Thank you. -Bruce