PR 40752: -Wconversion generates false warnings for operands not larger than target type

Manuel López-Ibáñez lopezibanez@gmail.com
Fri Jun 11 21:28:00 GMT 2010


On 11 August 2009 02:01, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Tue, 11 Aug 2009, Manuel López-Ibáñez wrote:
>
>> Modified the patch to make use of the new c-c++-common testsuite.
>> Bootstrapped and regression tested on x86_64-linux-gnu.
>>
>> OK for trunk?
>
> I still think the warnings for these cases are mostly correct (there are
> cases where you may be able to make deductions about the range of possible
> values of the expression being converted) and appropriate, and if disabled
> should be disabled under some separate -Wno-conversion-whatever option.

-Wno-conversion-after-promotion ?

I am not sure what would be a good name, but I think it is worth to
allow silencing these warnings, so suggestions are welcome.

Cheers,

Manuel.



More information about the Gcc-patches mailing list