This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IAR Error macro parameter "__VA_ARGS__" is used in both expanded and raw forms from app_error.h

I'm trying to compile an application that uses app_error.h, but IAR is throwing an error each time app_error.h is included, saying that the use of the NRF_LOG macro on lines 99 and 109 in app_error.h is problematic.

Line 99: NRF_LOG(NRF_LOG_COLOR_RED "\n*** ASSERTION FAILED ***\n");

Line 109: NRF_LOG(NRF_LOG_COLOR_RED "\n*** APPLICATION ERROR *** \n" NRF_LOG_COLOR_WHITE);

I do not have Treat Warnings as Errors enabled, but I would like to avoid needing to modify the include files. Has anyone encountered this before and what was your solution?

Parents Reply Children
No Data
Related