AnsweredAssumed Answered

Update 10 - Cannot suppress all MISRA checks

Question asked by mjwood0 on Jan 22, 2013
Latest reply on Jan 24, 2013 by CraigG

I'm attempting to suppress all MISRA checking in a source file using the following syntax as discussed in the Update 10 release notes:

 

#pragma diag(suppress:misra_rules_all:"Disable MISRA checking")

 

 

However, I get the following compiler error:

"CodeFile.h", line 20: cc0613:  error:

          invalid error tag in diagnostic control option:

#pragma diag(suppress:misra_rules_all:"Disable MISRA checking")

 

What am I doing wrong?  And if this doesn't work, is there any alternative way of suppressing all MISRA errors / warnings for a specific file?

 

Thanks!

Outcomes