This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]