This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] reduce noise of -Wconversion
Am 08.05.2010 20:52, schrieb Daniel Franke:
> On Saturday 08 May 2010 20:17:25 Tobias Burnus wrote:
>
>> The current -Wconversion option is very verbose, but it allowed me to
>> find bugs such as:
>> double_var = sqrt(2.0)
>>
>> where the RHS should be: "sqrt(2.0d0)".
>>
> I think we should aim for the least amount of surprise. Lot's of people
> complained about the noisy behaviour and asked to get rid of the warnings for
> those perfectly valid conversions.
Thus, I was wondering:
>> I am wondering whether we need some -Wconversion-extra option.
>> I think regarding disabling, I like the new middle-end feature, which
>> prints the warning flag in squared brackets after the warning message
>>
> While correct, I fail to see the relationship to the patch?!
>
Well, one directly sees which warning comes from -Wconversion-extra and
which one from -Wconversion-extra, making it easier to disable only one
kind of conversion warnings without the other and without studying
in-depth the manual to find out that one can disable part of the warning.
Tobias