Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Commit

Permalink
Disable undeclared selector warning for intentional use
Browse files Browse the repository at this point in the history
  • Loading branch information
martica committed May 31, 2012
1 parent ed1b193 commit 1d8c484
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Kiwi/KWIntercept.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#pragma mark -
#pragma mark Getting Forwarding Implementations

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"

IMP KWRegularForwardingImplementation(void) {
return class_getMethodImplementation([NSObject class], @selector(KWNonExistantSelector));
}
Expand All @@ -34,6 +37,8 @@ IMP KWStretForwardingImplementation(void) {
return class_getMethodImplementation_stret([NSObject class], @selector(KWNonExistantSelector));
}

#pragma clang diagnostic pop

IMP KWForwardingImplementationForMethodEncoding(const char* encoding) {
#if TARGET_CPU_ARM
const NSUInteger stretLengthThreshold = 4;
Expand Down

0 comments on commit 1d8c484

Please sign in to comment.