refine some waring of Xcode