I want to enable warning C4061 in VC6 SP5 (for some reason, my company
isn't approving SP6), which alerts you if a switch statement on an
enumerated type doesn't handle all of the enum's members. Even in the
simplest case, it does not work for me:
---------------
#pragma warning (default : 4061)
enum prag{ALPHA, BETA, GAMMA};
void f(prag p)
{
switch(p)
{
case ALPHA :
case GAMMA :
break;
}
}
void main() {}
---------------
I have cleaned and rebuilt many times on every warning level. Does
anyone have any insight into why it isn't working? I also tried C4062
and had the same problem.
Thank you very much.