This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Wconversion-sign
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.