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
原因是你使用的一个函数的返回值类型是void,而你有对它进行了赋值处理。
例如:
int ret;
ret=unregister_chrdev(MAJOR_NUM,"globalvar");
come from :http://blog.csdn.net/unikingest/archive/2009/03/10/3977724.aspx
相关文章推荐
- error: void value not ignored as it ought to be
- void value not ignored as it ought to be
- void value not ignored as it ought to be
- error: void value not ignored as it ought to be .
- void value not ignored as it ought to be
- void value not ignored as it ought to be
- 编译内核模块 error: void value not ignored as it ought to be
- Android之error: void value not ignored as it ought to be(In function 'callMethod2')解决办法
- cpp:104:11: error: void value not ignored as it ought to be
- error: void value not ignored as it ought to be
- error: void value not ignored as it ought to be
- void value not ignored as it ought to be
- 解决:void value not ignored as it ought to be
- void value not ignored as it ought to be
- error: void value not ignored as it ought to be
- 30.In which situation may the UNDO_RETENTION parameter be ignored, even if it is set to a value?
- 关于Ubuntu下XXis not marked as executable. it may be dangerous to run. 程序无法执行问题
- java.sql.SQLException:Value ‘0000-00-00′ can not be represented as java.sql.Date .
- Caused by: java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date
- MySQL 关于 Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestam