如何修复 'warning #1173-D: attribute "deprecated" ignored?'

How to fix 'warning #1173-D: attribute "deprecated" ignored?'

一些常用的实用函数需要像这样弃用:

__attribute__((deprecated)) void TestDeprecatedMethod(int a, float b);

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

warning: 'void CTest::TestDeprecatedMethod(int, float)' is deprecated

但是像这样在DSP端失败了

warning #1173-D: attribute "deprecated" ignored

使用 gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 和 ti-dvsdk_omapl138-evm_4_02_00_06/c6000_7.4.7。 DSP 构建需要更改什么?

根据TI

C6000 compiler versions 7.4.x do not support the GCC attribute deprecated.