Question

I am running cppcheck on my project and am getting reports of unused Functions that ARE definitely used (project wont compile if I remove them). Are there any known reasons why this might happen ? or how I can stop the false reports

Thanks

No correct solution

OTHER TIPS

In case this error is still present in the latest version of cppcheck, could you please create a minimal example that demonstrates the issue. Having such a test case, the cppcheck developers can fix the issue. I also recommend that you report such issues to cppcheck bugtracker here.

One reason is that you did not configure as expected Cppcheck, you have to specify the include paths and defines, you can also use CppDepend which integrate now cppcheck and did all the configuration staf from the projects you analyse, and also report all methods not used.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top