Hi Team,
We have ported the code from SDK 16 to 17.0.0 version. While compiling we are getting error (attached the screenshot).
But the all required files are included like "nrf_nvic.h" , "nrf_error_soc.h"
Regards,
Srinivas.V
Hi Team,
We have ported the code from SDK 16 to 17.0.0 version. While compiling we are getting error (attached the screenshot).
But the all required files are included like "nrf_nvic.h" , "nrf_error_soc.h"
Regards,
Srinivas.V
Hi
I've done some digging into this issue, and it seems like these warnings for unreachable code are not very unusual in the later IAR versions, as it seems they recently implemented this. The reason these are "unreachable" is because of the way we're handling asserts or other means of detecting that something that should be unreachable was reached anyway. You can remove these warnings by doing the following:
However, I would suggest trying to only suppress the explicit ones where we have implemented unreachable code on purpose. I am not an IAR expert however, so I'm not entirely sure on how to do so.
Best regards,
Simon
Hi
I've done some digging into this issue, and it seems like these warnings for unreachable code are not very unusual in the later IAR versions, as it seems they recently implemented this. The reason these are "unreachable" is because of the way we're handling asserts or other means of detecting that something that should be unreachable was reached anyway. You can remove these warnings by doing the following:
However, I would suggest trying to only suppress the explicit ones where we have implemented unreachable code on purpose. I am not an IAR expert however, so I'm not entirely sure on how to do so.
Best regards,
Simon