ARM-software/CMSIS-Compiler

IAR error with [--require_prototypes] build option

Opened this issue · 2 comments

Hi

In our project, we enable this [--require_prototypes] build option in IAR.

This makes errors:
"xxx\source\iar\retarget_io.c",63  Error[Pa045]: function "__write" has no prototype
"xxx\source\iar\retarget_io.c",37  Error[Pa045]: function "__read" has no prototype

Please could you add the function prototypes in the source\iar\retarget_io.c file

Hi,

I believe this will be fixed once #58 gets merged. The reason for your error is that LowLevelIOInterface.h is not included in retarget_io.c.
See

#include <LowLevelIOInterface.h>

if you want to fix it manually.

Hi
great, we'll apply the patch. do you know when the patch will be officially delivered?