[SOLVED] Suppressing a Misra Rule for a function or portion of code in IAR MSP430 IDE

Status
Not open for further replies.

ammamon

Newbie level 4
Joined
Jun 28, 2006
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,327
Is it possible to suppress a MISRA rule for a function or portion of code in IAR MSP430 IDE instead of applying the suppress for the whole module?

Please help.

Regards,
Ammamon
 

If you are using PC Lint to analyze the code, it is possible.

/*lint -e102, suppress error */

__CONFIG(INTIO & WDTEN & PWRTEN & MCLREN & BOREN & CP & IESODIS & FCMDIS & LVPDIS & DEBUGEN);
__CONFIG(BORV21 & WP2);

/*lint +e102 */
 

Thank you btbass. I will try using PC Lint.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…