Fixed Xcode's analyzing warnings