This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Change -Wswitch behaviour when there is a default case
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Sun, 07 Jun 2009 19:05:11 -0700
- Subject: Re: PATCH RFA: Change -Wswitch behaviour when there is a default case
- References: <m3ab4mp9f9.fsf@google.com>
Ian Lance Taylor wrote:
> -Wswitch issues two warnings about switches on values of enum type.
> First, it warns if the switch omits any value of the enum type. Second,
> it warns if the switch includes any value which is not of the enum type.
This patch is OK.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713