Linker Warning About wchar_t Size in IAR EWARM 8.x
When building an On-Chip SDK project, you may see a warning like the following:
Warning[Lt009]: Inconsistent wchar_t size
assert.obj(libip_stack.a) and 239 other objects in 4 different libraries have wchar_t size 16 bits
gpio_app.o and 26 other objects, some of them in dl7M_tln.a and 8 other libraries have wchar_t size 32 bits
This occurs because the stack library was built using IAR 7.x, and the wchar_t size changed in IAR 8.x. The stack and On-Chip SDK applications do not use wchar_t so it is safe to ignore this warning.
You can suppress it in the project settings:
In Project->Options->Linker→Diagnostics, select Suppress these diagnostics and specify Lt009
For reference: IAR ARM C/C++ compiler Release Notes for 8.11