This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-Wswitch not working in 3.x
- From: Bill Currie <bill at taniwha dot org>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 29 Dec 2001 23:02:56 -0700
- Subject: -Wswitch not working in 3.x
The following code sample shows -Wswitch not working for gcc 3.x (gcc
--version: 3.0.3). gcc 2.95.4 gives the expected warning.
enum foo {
bar,
baz
};
void blah (enum foo foo)
{
switch (foo) {
case bar:
break;
}
}
Bill
--
Leave others their otherness. -- Aratak