On Tue, May 3, 2011 at 16:20, Jason Merrill <ja...@redhat.com> wrote:
> On 04/29/2011 10:59 AM, Diego Novillo wrote:
>>
>> This patch from Le-Chun Wu adds a new warning flag "-Wreal-conversion"
>> that warns about implicit type conversions from real (double or float)
>> values to integral values.
>
> Why do you want to use this flag rather than just use -Wconversion?

Because we've found it too noisy.  -Wconversion is a super-set of
-Wreal-conversion.  We added it in response to internal requests.
-Wconversion was warning benign cases so we could not enable it by
default in our builds.

Le-Chun, do you have some examples of -Wconversion being too spammy for us?


Diego.

Reply via email to