Xcode 6 warnings correction