Menu

Does -i option work for 1.72 release?

2016-01-11
2016-01-16
  • Aleksey Chemakin

    I use -i option in my project to exclude third party sources from analyze.
    When I switched from 1.71 to 1.72 I started to get errors and warnings from sources which are specified with -i option.
    So I suspect -i option is broken in 1.72 release. I switched back to 1.71, and everything is ok.

     

    Last edit: Aleksey Chemakin 2016-01-11
  • Aleksey Chemakin

    This was a false alarm. -i option does not exclude headers (included from sources) from analyze. The 1.72 cppcheck just noticed many errors in my third party headers which were not noticed by 1.71 cppcheck. Interesting, How can I disable report for headers (included from sources) too? I really do not wish to debug third party library headers.

     

    Last edit: Aleksey Chemakin 2016-01-11
  • Daniel Marjamäki

    You can use --suppress to remove all warnings in given files.

    Another option would be using a filter on the report that removes such warnings.

     

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.