可以在makefile中添加以下语句来关闭此警告:

ccflags-y += -Wno-error=declaration-after-statement

其中,ccflags-y是内核makefile中用于指定编译选项的变量。通过添加“-Wno-error=declaration-after-statement”,可以将此警告从错误级别降为警告级别,从而避免编译错误。

-Werror=declaration-after-statement makefile关闭此警告ccflags-y

原文地址: http://www.cveoy.top/t/topic/Iya 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录