Swift 3.0 Result of call is unused [duplicate]
Solution 1:
You are getting this issue because the function you are calling returns a value but you are ignoring the result.
There are two ways to solve this issue:
Ignore the result by adding
_ =
in front of the function callAdd
@discardableResult
to the declaration of the function to silence the compiler