Closed dmaclach closed 4 years ago
This appears to be an clang issue however I thought folks should be aware of it here:
- (void)testFoo { id object; OCMVerify([object init]); }
will generate a warning: "expression result unused" for any init type methods (of type objc_method_family (init))
objc_method_family (init)
The temporary workaround is to call _OCMVerify or _OCMVerifyWithQuantifier directly.
_OCMVerify
_OCMVerifyWithQuantifier
https://bugs.llvm.org/show_bug.cgi?id=45245
Please update if and when there are news from clang.
Fixed with 9b234bd131ccc264cce1bec447b502da7ac843c5. (Now we need to remember to remove this when the issue in clang gets fixed...)
This appears to be an clang issue however I thought folks should be aware of it here:
will generate a warning: "expression result unused" for any init type methods (of type
objc_method_family (init)
)The temporary workaround is to call
_OCMVerify
or_OCMVerifyWithQuantifier
directly.https://bugs.llvm.org/show_bug.cgi?id=45245