Skip to content

Commit

Permalink
Fix warning about SCRCException when bootstrapping Cedar
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Croom committed Sep 14, 2015
1 parent fdd2f66 commit d54eece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/CDRFunctions.m
Expand Up @@ -78,7 +78,9 @@ void CDRDefineSharedExampleGroups() {
}

BOOL CDRClassHasClassMethod(Class class, SEL selector) {
if (strcmp("UIAccessibilitySafeCategory__NSObject", class_getName(class))) {
const char *className = class_getName(class);
if (strcmp("UIAccessibilitySafeCategory__NSObject", className) &&
strcmp("SCRCException", className)) {
return !!class_getClassMethod(class, selector);
}
return NO;
Expand Down

0 comments on commit d54eece

Please sign in to comment.