case 'identifier' is not a valid value for switch of enum 'identifier'
The specified identifier was used as a case label in a switch statement.
The following example causes this warning
enum E { a, b };
void func ( E e )
{
switch(e)
{
case a:
case b:
case 7: // invalid switch value
break; // no default label
}
}