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
Powered by: 博客园 Copyright © 2024 lovewcl Powered by .NET 9.0 on Kubernetes