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.

[参考译文] 编译器/OMAPL138B-EP:如何修复'警告#1173-D:属性"已弃用"已忽略?#39;

Guru**** 2541750 points


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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/721201/compiler-omapl138b-ep-how-to-fix-warning-1173-d-attribute-deprecated-ignored

器件型号:OMAPL138B-EP

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

一些常用实用程序函数需要被弃用、如下所示:

__attribute__((已弃用)) void TestDeprecatedMethod (int a,float b);

这在 OMAP 的 ARM 端按预期工作、如下所示:

警告:已弃用'void CTest::TestDeprecatedMethod (int, float)'

但在 DSP 方面、它会像这样失败

警告#1173-D:属性"已弃用"已忽略

使用 gcc (Uubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3和 ti-dvsdk_omapl138-evm_4_02_00_06/C6000_7.4.7。

DSP 构建需要更改什么?

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

    C6000编译器版本7.4.x 不支持弃用 GCC 属性。  在8.2.x 和8.3.x 等更高版本中受支持  但是、使用这些版本的 C6000编译器可能会导致 SDK 中其他组件出现问题。

    谢谢、此致、

    乔治