-Wswitch not working in 3.x

Bill Currie bill@taniwha.org
Sat Dec 29 22:35:00 GMT 2001


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



More information about the Gcc mailing list