Permalink
Browse files

Merge pull request #139 from martica/FixWarning

Disable undeclared selector warning for intentional use
  • Loading branch information...
2 parents 56a4187 + 1d8c484 commit 15a2936ac30117ab3bacca7fbd0d952b6dad37f8 Allen Ding committed Jun 5, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Kiwi/KWIntercept.m
View
5 Kiwi/KWIntercept.m
@@ -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));
}
@@ -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;

0 comments on commit 15a2936

Please sign in to comment.