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.

[参考译文] 编译器/TMS320F28377S:Misra-C:2004 12.6/A

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/675139/compiler-tms320f28377s-misra-c-2004-12-6-a

器件型号:TMS320F28377S

工具/软件:TI C/C++编译器

MISRA-C :2004错误警告:

./main.c"、第73行:警告#1483-D:(Misra-C:2004 12.6/a)有效布尔表达式不应用于具有无效布尔表达式的运算

复制代码:

typedef unsigned int U16_t

void testme (u16_t u16_tv);

typedef 结构

u16_t au16_test[6]

u16_t u16_tw

} ST_Test

ST_Test MST_TEST[3];

void testme (u16_t u16_tv)

Mta_test[0].U16_tw = U16_tv + 0U;

STRAL_TEST[0]。U16_tw = U16_tv;

/**

*应用程序入口点

*

void main (void)

testme (23U);

全编译输出:

****为项目启动构建配置调试****

"D:\\ti\\ccsv8\\utils\\bin\\gmake"-k -j 4 all -O

编译文件:"../main.c"

调用:C2000编译器

"d:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -O0 -opt_for_speed=2 -include_path="C:/Users/L029453/DSPbase2/ti_boot -advice:performance=g -vcu_support=vcu2 -ovcu-ature=-g-over-1.7-intrate-driendat_ine-guide-guide-de-guide-ines=-ine-guide-guide-ine-ine-guide-ine-se-guide-ine-de-guide-ine-guide-ine-guide-ine-de-guide-ine-ine-guide-guide-ine-de-de-guide-ine-de-guide-de-de-de-

"./main.c"、第73行:警告#1483-D:(Misra-C:2004 12.6/a)有效布尔表达式不应用于具有无效布尔表达式的运算

建筑完工:"../main.c"

构建目标:"boot.out"

调用:C2000链接器

"d:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000 "-v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=vcu_support=vcu2 -o0 -opt_for_speed=2 -advice:performance=g -cmu_support=tmu0 -vcu_support=vcu2 -ovintrack-exclus-rom-exclus-exclus-rom-exclus-inat_exclus-ine-exclus./at_exclus-content-content-content-content/inat_exclus.obj "/at_exclus-intrack-content-content-content-content-content-content-content-content/ines"/content-content-content-content-content/ines1.4bs.obj -content-content-content-content-content-/infot/infot/infot/infot/ov.obj -content-content-/ination_real-ination_real-ination_reposit_ov./infot/content-content-content/

已完成构建目标:"boot.out"

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

    感谢您将此问题告知我们、并提交一份简明的测试案例。  我可以重现相同的诊断。  我在 SDOWP 系统中提交了 CodeGen-4617、要求对此进行调查。  欢迎您在我的签名中使用下面的 SDOWP 链接进行访问。

    谢谢、此致、

    乔治

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    用例有帮助:以前的版本不会发生这种情况:TI-CGT-C2000_16.9.6.LTS 和 ti-CGT-C2000_16.9.4.LTS