In Objective-C, the following code generates an Unused variable warning:
- (void)viewDidLoad { [super viewDidLoad]; NSInteger unusedVariable; }
But in Swift, the following code does not generate a warning:
override func viewDidLoad() { super.viewDidLoad() var unusedVariable: Int }
Xcode version 6.0.1.
Assembly Options> Unused Variables - YES in a Swift project.
Is this just for me?
How to get Swift or Xcode to generate an Unused variable warning in Swift?
ios iphone xcode swift
user_
source share