This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#pragma for disabling/enabling strict ANSI sections?



Hi Folks

I note there are #pragmas for enabling and disabling MISRA check code sections, are there similar ones for performing the same or similar for the language mode? especially relating to strict ANSI (--strict-ansi, -ps)? (C200 v6.2.10 compiler)

The reson for asking this is I would like to build my code with MISRA checks, but cannot complete this with -ps enabled because of the TI device support libraries and compiler tools code which is not strict ANSI or MISRA built. So I can disable MISRA checks for those sections using the related #pragmas, but havent found a way yet to do something similar for the strict ANSI checking.

Ta

PS: Any recent info on MISRA/strict-ansi compliance for near releases of C2000 support files or compiler tools files?

  • Toby Mole said:
    I note there are #pragmas for enabling and disabling MISRA check code sections, are there similar ones for performing the same or similar for the language mode? especially relating to strict ANSI (--strict-ansi, -ps)? (C200 v6.2.10 compiler)

    Unfortunately, no.

    Thanks and regards,

    -George