Remove cppcheck warnings.