remove some warning reported by cppcheck