Modify warning code.
Merge pull request #9688 from pipu/modify_warning

Modify warning code.