Cppcheck errors