This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28075:从指针到较小整数的#770-D 转换

Guru**** 2943400 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/914402/tms320f28075-770-d-conversion-from-pointer-to-smaller-integer

器件型号:TMS320F28075

您好!

我的客户在下面添加了两句话、以根据相关的帖子建议禁止警告

#pragma diag_suppress 770

#pragma diag_default 770

但他们想知道这是否会给项目带来任何风险。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Howard、

    通常、当我们希望抑制特定代码行的警告时、我们会按如下方式执行该操作:

    #pragma diag_suppress=770
    #pragma diag_suppress=173

    #pragma diag_warning=770
    #pragma diag_warning=173

    这可确保其影响是本地的、并且特定于该代码行。

    谢谢、

    Sira