closed #2393:fix some warnings