Menu

Suppress Misra Warnings in code

2022-04-12
2022-04-12
  • Michael Miner

    Michael Miner - 2022-04-12

    I am trying to suppress

    static char buffer[SCH_BUFFER_LEN]; // cppcheck-suppress "misra-c2012-8.9"
    

    This does not seem to work. I am using CppCheck 2.7 and call it using.

    cppcheck --addon=misra.json --inline-suppr -itest/ -Iinclude/utilities -Iinclude/ src/ --enable=all --suppressions-list=suppressions.txt --suppress=missingInclude . --inconclusive --xml graphal 2> cppcheck-result.xml
    

    Am I missing anything?

     
  • Daniel Marjamäki

    can you try:

    static char buffer[SCH_BUFFER_LEN]; // cppcheck-suppress misra-c2012-8.9
    
     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.