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: PR 40752: -Wconversion generates false warnings for operands not larger than target type


On 9 May 2012 15:21, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Good, I even have a patch essentially ready for that, but can you point me
> to that detailed feedback? I couldn't find it when I looked for it.

This is how I understood the following paragraph:

>>>>> 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.

That is,

cases where you not are able to make a deduction about ranges => the
warnings are appropriate and should be disabled only under a separate
option.

cases where you are able to deduce the ranges => warning is not appropriate

But I may have misinterpreted it.

Cheers,

Manuel.


>
> Thanks
> Paolo.


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