RFA: PATCH: -Wimplicit-double
Mark Mitchell
mark@codesourcery.com
Fri Sep 3 18:06:00 GMT 2010
On 9/3/2010 10:43 AM, Manuel López-Ibáñez wrote:
>>> This patch implements -Wimplicit-double, a new warning. The goal of
>>> the warning is to warn users when a "float" is implicitly converted to
>>> a "double".
> This is warned already by Wconversion for both C and C++ and Fortran!
The fact that there's another warning option which warns about the same
code is irrelevant. -Wconversion and -Wtraditional-conversion are
warning about something entirely different, from the user's perspective.
For example, -Wconversion warns about conversions that alter a value.
That's not the point here; this is about a value being altered, it's
about using a type that your hardware doesn't support natively. It's
entirely possible that a user doesn't want all the warnings that would
come from -Wconversion or -Wtraditional-conversion, but does want this
class of warnings.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list