fix warnings
Merge pull request #8053 from minggo/fix-warning

[ci skip]fix warnings