编译内核时,报这种警告,函数声明不是原型,导致编译失败,要去掉这个警告,是因为函数没有参数,但是这个时候参数列表必须写为void,如果没有参数,还不写void,就会导致这种警告错误。
相关文章
- 解决warning: incompatible implicit declaration of built-in function 'malloc'
- Automysqlbackup: WARNING: Turning off multicore support, since pigz isn’t there.
- gcc编译时为什么老是提示警告?test10.c:56: warning: implicit declaration of function ‘toascii’
- linux系统下,警告:warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 和 warning: the `gets' function is dangerous and should not be used. 的由来和解决方法。
- 解决warning: incompatible implicit declaration of built-in function 'malloc'
- 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’
- gcc: Compilation Warning: incompatible implicit declaration of built-in function `bzero’