Keil MDK 禁用指定的编译警告

时间:2021-08-23 20:20:57   收藏:0   阅读:19

在Misc Controls 配置 -Wno-<警告名称>,例如:

 warning: padding size of ‘CRC_HandleTypeDef‘ with 2 bytes to alignment boundary [-Wpadded]。

则禁用参数为 -Wno-padded
官方文档:https://www.keil.com/support/man/docs/uv4/uv4_dg_armclang_cmp.htm
技术分享图片

如果有警告代码则参考 csdn Keil5忽略特定的警告
即:--diag_suppress=<警告代码> 如:--diag_suppress=61

原文:https://www.cnblogs.com/shishirong/p/15177200.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!