fix compile warnings
Merge pull request #615 from volvet/clean-warning

fix compile warnings