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
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3