Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/SOCKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,12 @@ - (id)performSelector:(SEL)selector onObject:(id)object sourceString:(NSString *
BOOL succeeded = [self gatherParameterValues:&values fromString:sourceString];
NSAssert(succeeded, @"The pattern can't be used with this string.");

id returnValue = nil;

#if __has_feature(objc_arc)
id __autoreleasing returnValue = nil;
#else
id returnValue = nil;
#endif

if (succeeded) {
NSMethodSignature* sig = [object methodSignatureForSelector:selector];
NSAssert(nil != sig, @"%@ does not respond to selector: '%@'", object, NSStringFromSelector(selector));
Expand Down