This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Wenum-promotion (PR7651 Define -Wextra strictly in terms of other warning flags)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 07 Jan 2007 14:40:55 +0100
- Subject: Re: Wenum-promotion (PR7651 Define -Wextra strictly in terms of other warning flags)
- References: <6c33472e0701070453l5ec6dd62pbb63ed3a11c9d966@mail.gmail.com>
"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!).
-- Gaby