diff options
author | Sergio Campamá <kaipi@google.com> | 2018-06-05 15:14:19 -0400 |
---|---|---|
committer | Adam Cozzette <acozzette@google.com> | 2018-06-05 13:49:21 -0700 |
commit | a3f31bf0e2b74a5b29cbde36ee0d45937f76fda6 (patch) | |
tree | ca05210736f5396f02f49d046b0e01ea54a10f3d /objectivec/GPBArray.m | |
parent | 7e199b9e3501c2a34eeb28fd7eecde46086ad65f (diff) |
Update code to work for Xcode 10b1 (#4729)
* Update code to work for Xcode 10b
* Update README and test scripts to mention that Xcode 7 is no longer supported
Diffstat (limited to 'objectivec/GPBArray.m')
-rw-r--r-- | objectivec/GPBArray.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/objectivec/GPBArray.m b/objectivec/GPBArray.m index f401631d..122e0304 100644 --- a/objectivec/GPBArray.m +++ b/objectivec/GPBArray.m @@ -2537,12 +2537,12 @@ static BOOL ArrayDefault_IsValidValue(int32_t value) { return [_array countByEnumeratingWithState:state objects:buffer count:len]; } -- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block { +- (void)enumerateObjectsUsingBlock:(void (NS_NOESCAPE ^)(id obj, NSUInteger idx, BOOL *stop))block { [_array enumerateObjectsUsingBlock:block]; } - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts - usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block { + usingBlock:(void (NS_NOESCAPE ^)(id obj, NSUInteger idx, BOOL *stop))block { [_array enumerateObjectsWithOptions:opts usingBlock:block]; } |