diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-02-23 12:39:36 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-02-23 12:39:36 -0500 |
commit | e2a081579316bc905905e83acb5be55fd9aab508 (patch) | |
tree | 9a83dc43fb0a0e3b9bbf51d06130a0049fd8769b | |
parent | faf61e3369ff00128dfa087555856f8513601a56 (diff) |
add some casts to objc_msgSend
-rw-r--r-- | Foundation/GTMSystemVersion.m | 2 | ||||
-rw-r--r-- | UnitTesting/GTMSenTestCase.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Foundation/GTMSystemVersion.m b/Foundation/GTMSystemVersion.m index b234c2c..f3a8559 100644 --- a/Foundation/GTMSystemVersion.m +++ b/Foundation/GTMSystemVersion.m @@ -85,7 +85,7 @@ static NSString *const kSystemVersionPlistPath = @"/System/Library/CoreServices/ // version number instead of an iOS version number. Class uideviceClass = NSClassFromString(@"UIDevice"); if (uideviceClass) { - id currentDevice = objc_msgSend(uideviceClass, @selector(currentDevice)); + id currentDevice = ((id (*)(id, SEL))objc_msgSend)(uideviceClass, @selector(currentDevice)); version = [currentDevice performSelector:@selector(systemVersion)]; } if (!version) { diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m index e2f2ceb..ecab057 100644 --- a/UnitTesting/GTMSenTestCase.m +++ b/UnitTesting/GTMSenTestCase.m @@ -298,7 +298,7 @@ NSString *const SenTestLineNumberKey = @"SenTestLineNumberKey"; // It turns out that on iOS4 (and 3.2) exceptions thrown inside an // [invocation invoke] on the simulator cannot be caught. // http://openradar.appspot.com/8081169 - objc_msgSend(self, [invocation selector]); + ((void (*)(id, SEL))objc_msgSend)(self, [invocation selector]); #else [invocation invokeWithTarget:self]; #endif |