gcc warning: enum declared inside parameter list

来源:互联网 发布:mac ctrl键 编辑:程序博客网 时间:2024/05/29 15:56

to fix this warning, add an enum declaration before you using the enum type in parameter list.


such as, 

enum EnumType;void function(enum EnumType type){ xxx;}


0 0
原创粉丝点击