cppcheck: commit 62702a6
built with: make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes
$ cppcheck --enable=all --inconclusive main.cpp
Checking main.cpp ...
main.cpp:11:10: performance:inconclusive: Technically the member function 'B::test' can be static (but you may consider moving to unnamed namespace). [functionStatic]
void test() {
^
cppcheck: commit 62702a6
built with: make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes
This might be the same issue as with False positive: [unusedFunction] variadic template, but I can't be sure, so I am posting both.
Thanks! I created a ticket: https://trac.cppcheck.net/ticket/9806