------- Comment #2 from simon at josefsson dot org 2008-11-13 21:15 ------- I've found another warning parameter that behaves in a similar way, see output below. Note that this doesn't appear to be a general problem, I'm using -Wno-error=foo to turn several errors into merely warnings.
[EMAIL PROTECTED]:~$ cat bar.c enum a { FOO, BAR }; int main (void) { enum a a; switch (a) { case FOO: return 1; } return 0; } [EMAIL PROTECTED]:~$ gcc -o bar bar.c -Wswitch-enum -Werror -Wno-error=switch-enum cc1: warnings being treated as errors bar.c: In function main: bar.c:5: error: enumeration value BAR not handled in switch [EMAIL PROTECTED]:~$ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38105