您的位置:首页 > 产品设计 > UI/UE

void value not ignored as it ought to be

2011-01-25 18:20 267 查看
gcc中出现了“void value not ignored as it ought to be”错误,

原因是你使用的一个函数的返回值类型是void,而你有对它进行了赋值处理。

例如:

int ret;

ret=unregister_chrdev(MAJOR_NUM,"globalvar");

come from :http://blog.csdn.net/unikingest/archive/2009/03/10/3977724.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: