Permalink
Browse files

Disable undeclared selector warning for intentional use

  • Loading branch information...
1 parent ed1b193 commit 1d8c48480de7b728cafe7c5672ef2f756511d855 @martica committed May 31, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Kiwi/KWIntercept.m
View
@@ -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 1d8c484

Please sign in to comment.