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.

[参考译文] RM48L952:F021闪存 API v2.01.01 - IAR 编译器警告- wchar_t 大小

Guru**** 2394305 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1413724/rm48l952-f021-flash-api-v2-01-01---iar-compiler-warnings---wchar_t-size

器件型号:RM48L952

工具与软件:

尊敬的 TI 支持部门:

我们目前正在使用 RM48微控制器开发一个项目、在围绕 F021闪存 API 库构建包装程序时、我们在编译时就忽略了这一警告。

警告[Lt009]:wchar_t 大小不一致 
FlashStateMachine.EnableEepromSecectors.obj (F021_API_CortexR4_LE_V3D16.lib)和 F021_API_CortexR4_LE_V3D16.lib 中的15个其他对象具有 wchar_t 大小的16位
adc.o 和99个其他对象、其中一些在 dl7Sx_tln.a 和17个其他库中具有 wchar_t 大小32位

原因可能是因为在某些时候 IAR 将 wchar_t 大小从16位更改为32位。  我们的版本是 IAR 9.50.2。

代码运行正常、但由于我们需要验证代码库、因此不允许编译器警告。

是否提供了权变措施或新版本的库?

提前感谢。