首页 > 其他 > 详细

编译内核时: [-Warray-bounds]

时间:2021-05-03 10:41:53      阅读:33      评论:0      收藏:0      [点我收藏+]

完整报错:

warning: ‘memset‘ offset [17, 48] from the object at ‘r6‘ is out of the bounds of referenced subobject ‘rtmsg_dst‘ with type ‘struct in6_addr‘ at offset 0 [-Warray-bounds]

导致编译终止。

 

解决方法1: 找到对应函数,把这个警告去掉。

解决方法2: 修改编译文件,将警告不作为错误处理,忽略这个警告。建议使用方法1

  scripts/gcc-wrapper.py

 

编译内核时: [-Warray-bounds]

原文:https://www.cnblogs.com/hjxzjp/p/14726886.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!