在MDK 中忽略(suppress) 某一个警告
时间:2019-06-11 12:58:01
收藏:0
阅读:140
文章转载自:http://www.51hei.com/bbs/dpj-29515-1.html
有时候我们需要在MDK中忽略掉某一个具体的warnning,怎么做呢?
只需在Misc Control中添加 “--diag_suppress=<num>” 就可以了, num就是Keil中的警告代码,,比如在工程中需要忽略..\..\..\..\src\drivers\gpio\gpio.h(169): warning: #61-D: integer operation result is out of range 这个警告,只需添加 --diag_suppress=61,如下图所示:

原文:https://www.cnblogs.com/yeshenmeng/p/11002381.html
评论(0)