[fixed] some benign cppcheck warnings