I used Cppcheck on Myrlyn [1]. It reports dozens of unused functions. I
checked several of them and only found false positives.
Example:
/home/gruenich/myrlyn/src/YQZypp.h:84:0: style: The function 'ZyppRepositoriesEnd' is never used. [unusedFunction]
inline ZyppRepositoryIterator ZyppRepositoriesEnd() { return zyppPool().knownRepositoriesEnd(); }
^
Removing the function leads to a compiler error that the function is
missing. A simple git grep finds multiple uses of the function.
What can I provide to help you identify the problem within Cppcheck? I
use Cppcheck 2.17.0. The command I executed was:
Dear cppcheck team!
I used Cppcheck on Myrlyn [1]. It reports dozens of unused functions. I
checked several of them and only found false positives.
Example:
Removing the function leads to a compiler error that the function is
missing. A simple git grep finds multiple uses of the function.
What can I provide to help you identify the problem within Cppcheck? I
use Cppcheck 2.17.0. The command I executed was:
[1] https://github.com/shundhammer/myrlyn
Bye
Christoph
--
Most customers will not accept source code with compile errors in it.
Dan Saks, CppCon 2016 (https://youtu.be/D7Sd8A6_fYU)
Can you provide a reduced, self-contained example that shows the issue?