zoukankan      html  css  js  c++  java
  • 在MDK 中忽略(suppress) 某一个警告

    有时候我们需要在MDK中忽略掉某一个具体的warnning,怎么做呢?
    只需在Misc Control中添加  “--diag_suppress=<num>” 就可以了, num就是Keil中的警告代码,,比如在工程中需要忽略........srcdriversgpiogpio.h(169): warning:  #61-D: integer operation result is out of range 这个警告,只需添加  --diag_suppress=61,如下图所示:

    我自己的截图:

    ..BspDAC8562dac8562.c(307): warning: #177-D: variable "cmd" was declared but never referenced

    ..Appglobalglobal.c(102): warning: #69-D: integer conversion resulted in truncation——这里没有屏蔽
    testValue = 0xaacc;
    ..Appglobalglobal.c(73): warning: #550-D: variable "addr" was set but never used
    uint32_t addr = 0;
    ..BspIO_driverIO_driver.c(1699): warning: #188-D: enumerated type mixed with another type

  • 相关阅读:
    Linux命令
    Linux目录说明
    python推导式
    python公共方法
    python集合
    python字典
    python元组
    python列表
    python字符串常用操作方法
    C语言编译过程
  • 原文地址:https://www.cnblogs.com/CodeWorkerLiMing/p/12395508.html
Copyright © 2011-2022 走看看