Wenum-promotion (PR7651 Define -Wextra strictly in terms of other warning flags)

Manuel López-Ibáñez lopezibanez@gmail.com
Sun Jan 7 13:59:00 GMT 2007


Also, it would be great if you could give me an update on PR12242. Do
you have a half-backed patch? What do you want to implement exactly?
Would some of it apply to the C front-end?

Cheers,

Manuel.

On 07/01/07, Manuel López-Ibáñez <lopezibanez@gmail.com> wrote:
> On 07 Jan 2007 14:40:55 +0100, Gabriel Dos Reis
> <gdr@integrable-solutions.net> wrote:
> > "Manuel López-Ibáñez" <lopezibanez@gmail.com> writes:
> >
> > | :ADDPATCH c++:
> > |
> > | This patch continues the effort to fix PR7651 [1].
> > |
> > | A new option -Wenum-promotion takes over the warning for an enumerator
> > | and a non-enumerator appearing in a conditional expression.
> >
> > I would like to see this case instead covered by the conversion/coercion
> > warning switch.
> >
> > Yes, I know you're trying to preserve existing practice; but we have
> > to keep in the fore that the current situation is not the result of
> > systematic principles, and now is a good to time to rationalize all
> > that (and thanks for your contribution in this area!).
>
> That could be done but such patch depends on
> http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00799.html being approved
> first.
>
> Also, would this warning make sense for the C front-end ?
>
> Cheers,
>
> Manuel.
>


More information about the Gcc-patches mailing list