Menu

MISRA inline Suppression

Amir
2020-04-17
2020-05-14
  • Amir

    Amir - 2020-04-17

    Hello,
    I'm using the cppcheck GUI and I don't see a way to suppress MISRA inline violations. I've enabled inline suppression in the GUI and will add something like:

    // cppcheck-suppress misra-c2012-10.4

    And I will get an UnmatchedSuppression error in the GUI. The MISRA violation still appears also. I read through this thread:
    https://sourceforge.net/p/cppcheck/discussion/general/thread/d37e5d8f2c/

    And it looks like it may have worked at some point, but others are still reporting this as an issue.

    Is there a way to expedite this to get resolved? I'm open to working with the developers as this is important for my organization.

    Thank you,
    Amir

     
  • Amir

    Amir - 2020-04-17

    Just tested the command line, and inline suppression seems to work there, but not in the GUI.

     
  • Mike Banducci

    Mike Banducci - 2020-05-13

    I just posted in the older thread you linked with an example - I'm experiencing the same issue with v1.90.

     
  • Amir

    Amir - 2020-05-13

    thanks, I've ended up using the command line as it integrates very nicely in eclipse.

     
  • Daniel Marjamäki

    Thanks! I created this trac ticket: https://trac.cppcheck.net/ticket/9723

     

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.