cppcheck: fix unusedVariable