当前位置: 技术问答>linux和unix
c语言出现以下错误提示请问如何解决
来源: 互联网 发布时间:2015-07-23
本文导语: hello.c:91: warning: `struct file' declared inside parameter list hello.c:91: warning: its scope is only this definition or declaration, which is probably not what you want hello.c:91: warning: `struct inode' declared inside parameter list 源程序如下...
hello.c:91: warning: `struct file' declared inside parameter list
hello.c:91: warning: its scope is only this definition or declaration, which is probably not what you want
hello.c:91: warning: `struct inode' declared inside parameter list
源程序如下
int scullc_open (struct inode *inode, struct file *filp)
{
return 0;
}
hello.c:91: warning: its scope is only this definition or declaration, which is probably not what you want
hello.c:91: warning: `struct inode' declared inside parameter list
源程序如下
int scullc_open (struct inode *inode, struct file *filp)
{
return 0;
}
|
struct inode也一样
只要把包含这些数据结构声明的头文件包含进来就可以了
只要把包含这些数据结构声明的头文件包含进来就可以了