clear cppcheck errors