Fixes two Xcode 6 warnings