PATCH: Wconversion-sign

Manuel López-Ibáñez lopezibanez@gmail.com
Sun Mar 18 22:27:00 GMT 2007


On 18/03/07, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Sun, 18 Mar 2007, Manuel López-Ibáñez wrote:
>
> > Therefore, the current patch moves signed<->unsigned conversions from
> > -Wconversion to a new option -Wconversion-sign. Warnings for a
>
> I'd rather keep the specification of -Wconversion (the C option, I'll
> leave the C++ defaults to others) simple and allow -Wno-conversion-sign to
> disable these warnings.
>

I can do that as well: implementation-wise it is equivalent to
-Wconversion enables -Wconversion-sign unless -Wno-conversion-sign is
given.

I would like to know what Paolo and Gabriel prefer but, yes, the
default can be different for C and C++ if that is what you wish.

Cheers,

Manuel.



More information about the Gcc-patches mailing list