fix warning
more warnings fixed
Merge pull request #8878 from minggo/fix-warning

fix warning