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