Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request kiwi-bdd#139 from martica/FixWarning
Disable undeclared selector warning for intentional use
  • Loading branch information
Allen Ding committed Jun 5, 2012
2 parents 56a4187 + 1d8c484 commit 15a2936
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Kiwi/KWIntercept.m
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 15a2936

Please sign in to comment.