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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.