aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2017-10-10 06:55:36 -0700
committerGravatar GitHub <noreply@github.com>2017-10-10 06:55:36 -0700
commitfed01fc8d409c03b62002b507a2aaf6f6f767272 (patch)
treecb3776e9844d8189ed9de96171cfa7a7dd0b2b52 /Firebase
parent3dd4aea125fb6e2c3776a9d7ba15a61e074a348a (diff)
Fix warnings exposed by Xcode 9.1 in RTDB (#353)
Diffstat (limited to 'Firebase')
-rw-r--r--Firebase/Database/Core/Utilities/FIRRetryHelper.h2
-rw-r--r--Firebase/Database/Core/Utilities/FIRRetryHelper.m6
2 files changed, 4 insertions, 4 deletions
diff --git a/Firebase/Database/Core/Utilities/FIRRetryHelper.h b/Firebase/Database/Core/Utilities/FIRRetryHelper.h
index ffe2726..f83aad9 100644
--- a/Firebase/Database/Core/Utilities/FIRRetryHelper.h
+++ b/Firebase/Database/Core/Utilities/FIRRetryHelper.h
@@ -24,7 +24,7 @@
retryExponent:(double)retryExponent
jitterFactor:(double)jitterFactor;
-- (void) retry:(void (^)())block;
+- (void) retry:(void (^)(void))block;
- (void) cancel;
diff --git a/Firebase/Database/Core/Utilities/FIRRetryHelper.m b/Firebase/Database/Core/Utilities/FIRRetryHelper.m
index 6d79159..bcd9060 100644
--- a/Firebase/Database/Core/Utilities/FIRRetryHelper.m
+++ b/Firebase/Database/Core/Utilities/FIRRetryHelper.m
@@ -20,13 +20,13 @@
@interface FIRRetryHelperTask : NSObject
-@property (nonatomic, strong) void (^block)();
+@property (nonatomic, strong) void (^block)(void);
@end
@implementation FIRRetryHelperTask
-- (instancetype) initWithBlock:(void (^)())block {
+- (instancetype) initWithBlock:(void (^)(void))block {
self = [super init];
if (self != nil) {
self->_block = [block copy];
@@ -86,7 +86,7 @@
return self;
}
-- (void) retry:(void (^)())block {
+- (void) retry:(void (^)(void))block {
if (self.scheduledRetry != nil) {
FFLog(@"I-RDB054001", @"Canceling existing retry attempt");
[self.scheduledRetry cancel];