switch()出现警告warning:enumeration value ‘xxx’ not handled in switch

enumeration value ... not handled in switch

如果在switch中使用使用枚举类型,如:switch(枚举类型)

枚举类型的个数没有全部列出,就会报这个警告

原文地址:https://www.cnblogs.com/etangyushan/p/4903424.html