IAR error with [--require_prototypes] build option
Opened this issue · 2 comments
DCHSTM commented
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
VladimirUmek commented
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
CMSIS-Compiler/source/iar/retarget_io.c
Line 19 in 96b1a30
if you want to fix it manually.
DCHSTM commented
Hi
great, we'll apply the patch. do you know when the patch will be officially delivered?