Search code examples
compiler-errorscompiler-warningssuppress-warningsiarerror-suppression

How to suppress Pe070 error in IAR EW 8.1?


I have to upgrade an IAR EW project from V 7.80.2 to V 8.10.1.

My project worked without any warnings or errors in version 7.8. When I try to build exact the same project in version 8.1 I get the following errors (Pe070 / Pe065 / Pe020) These errors appear in my RTOS sources (SEGGER / emBos), so I'm not able to fix them right now.

My idea is to suppress these errors until IAR or my RTOS supplier has fixed theses errors. I tried it like this:

How to suppress warning (converted from error) in IAR EWARM 5.4

enter image description here

But it doens't work, the errors still occur.


Solution

  • It is not all errors that can be suppressed using --diag_warning or --diag_suppress. If the error is to severe the suppress option will be silently ignored by the compiler. Unfortunately there is no way to see which errors can be ignored an which can't.