编译内核时,报这种警告,函数声明不是原型,导致编译失败,要去掉这个警告,是因为函数没有参数,但是这个时候参数列表必须写为void,如果没有参数,还不写void,就会导致这种警告错误。
相关文章
- warning: function declaration isn't a prototype
- warning: implicit declaration of function ‘typeof’
- function declaration isn't a prototype
- gcc: Compilation Warning: incompatible implicit declaration of built-in function `bzero’
- function declaration isn't a prototype
- 关于warning: function declaration isn’t a prototype(函数声明不是原型)的解决办法
- warning: function declaration isn't a prototype
- error: function declaration isn’t a prototype [-Werror=strict-prototypes] static int kobject_test_e
- warning: function declaration isn't a prototype原因分析