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.

[参考译文] TM4C123GH6PM:警告#1376-D (MISRA-C:2004 1.1/R)

Guru**** 2769425 points

Other Parts Discussed in Thread: TM4C123GH6PM

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1037089/tm4c123gh6pm-warning-1376-d-misra-c-2004-1-1-r

器件型号:TM4C123GH6PM

 您好!

     我们将 MISRA-C 与 TM4C123GH6PM 搭配使用、得到的结果是  

 #1376-D (MISRA-C:2004 1.1/R)确保启用严格 ANSI C 模式(-ps)

警告

它的含义是什么? 以及 如何解决警告。  

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

    您好 Mariya、

    这是 Code Composer Studio 中的错误吗? MISRA-C 检查是否通过 Code Composer Studio 打开?

    此致、

    Ralph Jacobi

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

    是的,在 Code Composer Studio 中打开了 MISRA-C。 我们使用  MISRA-C:2004 1.1规则。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="332083" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1037089/tm4c123gh6pm-warning-1376-d-misra-c-2004-1-1-r "]其含义是什么?

    这意味着您不使用编译器选项--strict_ansi (或简称-ps)进行编译。  使用此选项进行编译是 MISRA 要求。  要了解有关此选项的更多信息、 请在 TI ARM 编译器手册中搜索 标题为 严格 ANSI 模式和宽松 ANSI 模式的子章节。

    谢谢、此致、

    乔治