aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Util
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2017-10-09 13:41:39 -0700
committerGravatar GitHub <noreply@github.com>2017-10-09 13:41:39 -0700
commitb2a169f08a73300d0ee51c5cbd211d29de1cf62f (patch)
tree53c4d7df373ed09ef6ce628af78ade967d651d49 /Firestore/Source/Util
parent8156da3f32e3b41e4a1222d05261be47be67b0d6 (diff)
Fix warnings exposed by Xcode 9.1 in Firestore source (#354)
Diffstat (limited to 'Firestore/Source/Util')
-rw-r--r--Firestore/Source/Util/FSTDispatchQueue.h4
-rw-r--r--Firestore/Source/Util/FSTDispatchQueue.m4
2 files changed, 4 insertions, 4 deletions
diff --git a/Firestore/Source/Util/FSTDispatchQueue.h b/Firestore/Source/Util/FSTDispatchQueue.h
index da6b3fe..256b9c0 100644
--- a/Firestore/Source/Util/FSTDispatchQueue.h
+++ b/Firestore/Source/Util/FSTDispatchQueue.h
@@ -37,7 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param block The block to run.
*/
-- (void)dispatchAsync:(void (^)())block;
+- (void)dispatchAsync:(void (^)(void))block;
/**
* Unlike dispatchAsync: this method does not require you to dispatch to a different queue than
@@ -48,7 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param block The block to run.
*/
-- (void)dispatchAsyncAllowingSameQueue:(void (^)())block;
+- (void)dispatchAsyncAllowingSameQueue:(void (^)(void))block;
/** The underlying wrapped dispatch_queue_t */
@property(nonatomic, strong, readonly) dispatch_queue_t queue;
diff --git a/Firestore/Source/Util/FSTDispatchQueue.m b/Firestore/Source/Util/FSTDispatchQueue.m
index 8d55d28..9613102 100644
--- a/Firestore/Source/Util/FSTDispatchQueue.m
+++ b/Firestore/Source/Util/FSTDispatchQueue.m
@@ -44,7 +44,7 @@ NS_ASSUME_NONNULL_BEGIN
[self targetQueueLabel], [self currentQueueLabel]);
}
-- (void)dispatchAsync:(void (^)())block {
+- (void)dispatchAsync:(void (^)(void))block {
FSTAssert(![self onTargetQueue],
@"dispatchAsync called when we are already running on target dispatch queue '%@'",
[self targetQueueLabel]);
@@ -52,7 +52,7 @@ NS_ASSUME_NONNULL_BEGIN
dispatch_async(self.queue, block);
}
-- (void)dispatchAsyncAllowingSameQueue:(void (^)())block {
+- (void)dispatchAsyncAllowingSameQueue:(void (^)(void))block {
dispatch_async(self.queue, block);
}