美文网首页
warning: ISO C90 forbids mixed d

warning: ISO C90 forbids mixed d

作者: 谦悠 | 来源:发表于2018-06-12 18:25 被阅读0次

修改驱动之后编译内核有时候会遇到如下警告:

warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

这时候我们只需要将相应定义变量的语句放到函数的开头即可。

在内核代码中,尽可能的将变量的定义放到函数的开头


相关文章

网友评论

      本文标题:warning: ISO C90 forbids mixed d

      本文链接:https://www.haomeiwen.com/subject/vtureftx.html