remove useless local variable 'stat'
also remove complier warinnings
Merge pull request #3 from linyvxiang/lab2

remove useless local variable 'stat'