diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2017-10-09 13:41:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-09 13:41:39 -0700 |
commit | b2a169f08a73300d0ee51c5cbd211d29de1cf62f (patch) | |
tree | 53c4d7df373ed09ef6ce628af78ade967d651d49 /Firestore/Source/Remote | |
parent | 8156da3f32e3b41e4a1222d05261be47be67b0d6 (diff) |
Fix warnings exposed by Xcode 9.1 in Firestore source (#354)
Diffstat (limited to 'Firestore/Source/Remote')
-rw-r--r-- | Firestore/Source/Remote/FSTDatastore.m | 4 | ||||
-rw-r--r-- | Firestore/Source/Remote/FSTExponentialBackoff.h | 2 | ||||
-rw-r--r-- | Firestore/Source/Remote/FSTExponentialBackoff.m | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Firestore/Source/Remote/FSTDatastore.m b/Firestore/Source/Remote/FSTDatastore.m index 3ed2729..6ca7cae 100644 --- a/Firestore/Source/Remote/FSTDatastore.m +++ b/Firestore/Source/Remote/FSTDatastore.m @@ -62,7 +62,7 @@ static NSString *const kXGoogAPIClientHeader = @"x-goog-api-client"; static NSString *const kGoogleCloudResourcePrefix = @"google-cloud-resource-prefix"; /** Function typedef used to create RPCs. */ -typedef GRPCProtoCall * (^RPCFactory)(); +typedef GRPCProtoCall * (^RPCFactory)(void); #pragma mark - FSTStream @@ -417,7 +417,7 @@ typedef NS_ENUM(NSInteger, FSTStreamState) { }]; } -- (void)invokeRPCWithFactory:(GRPCProtoCall * (^)())rpcFactory +- (void)invokeRPCWithFactory:(GRPCProtoCall * (^)(void))rpcFactory errorHandler:(FSTVoidErrorBlock)errorHandler { // TODO(mikelehen): We should force a refresh if the previous RPC failed due to an expired token, // but I'm not sure how to detect that right now. http://b/32762461 diff --git a/Firestore/Source/Remote/FSTExponentialBackoff.h b/Firestore/Source/Remote/FSTExponentialBackoff.h index 0bee2bd..674b1ac 100644 --- a/Firestore/Source/Remote/FSTExponentialBackoff.h +++ b/Firestore/Source/Remote/FSTExponentialBackoff.h @@ -72,7 +72,7 @@ NS_ASSUME_NONNULL_BEGIN * * @param block The block to run. */ -- (void)backoffAndRunBlock:(void (^)())block; +- (void)backoffAndRunBlock:(void (^)(void))block; @end diff --git a/Firestore/Source/Remote/FSTExponentialBackoff.m b/Firestore/Source/Remote/FSTExponentialBackoff.m index ec21282..179b3f9 100644 --- a/Firestore/Source/Remote/FSTExponentialBackoff.m +++ b/Firestore/Source/Remote/FSTExponentialBackoff.m @@ -68,7 +68,7 @@ _currentBase = _maxDelay; } -- (void)backoffAndRunBlock:(void (^)())block { +- (void)backoffAndRunBlock:(void (^)(void))block { // First schedule the block using the current base (which may be 0 and should be honored as such). NSTimeInterval delayWithJitter = _currentBase + [self jitterDelay]; if (_currentBase > 0) { |