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

[ci skip]fix warnings