I have a Swift class that is bridged to Objective-C. Even with @discardableResult
, it's throwing this warning on build in the Objective-C class:
Ignoring return value of function declared with 'warn_unused_result' attribute
Is there a way to silence this? This is in Xcode 8.3 with Swift 3.1.
A cast to (void)
should silence the warning:
(void)[SingletonClass sharedInstance];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With