cppcheck: remove unused variables
cppcheck: move initialization to initialization list