Skip to content

Commit 8156da3

Browse files
authored
Fix warnings exposed by Xcode 9.1 in Auth (#350)
1 parent 20b94f7 commit 8156da3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Firebase/Auth/Source/FIRAuth.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ - (void)sendPasswordResetWithNullableActionCodeSettings:(nullable FIRActionCodeS
892892
});
893893
}
894894

895-
- (BOOL)signOut:(NSError *_Nullable *_Nullable)error {
895+
- (BOOL)signOut:(NSError *_Nullable __autoreleasing *_Nullable)error {
896896
__block BOOL result = YES;
897897
dispatch_sync(FIRAuthGlobalWorkQueue(), ^{
898898
if (!_currentUser) {

Firebase/Auth/Source/FIRAuthGlobalWorkQueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ NS_ASSUME_NONNULL_BEGIN
2626
implementations that may involve contested code shall dispatch to this work queue as the
2727
first thing they do.
2828
*/
29-
extern dispatch_queue_t FIRAuthGlobalWorkQueue();
29+
extern dispatch_queue_t FIRAuthGlobalWorkQueue(void);
3030

3131
NS_ASSUME_NONNULL_END

Firebase/Auth/Source/FIRAuthURLPresenter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ - (void)finishPresentationWithURL:(nullable NSURL *)URL
157157
_UIDelegate = nil;
158158
FIRAuthURLPresentationCompletion completion = _completion;
159159
_completion = nil;
160-
void (^finishBlock)() = ^() {
160+
void (^finishBlock)(void) = ^() {
161161
_isPresenting = NO;
162162
completion(URL, error);
163163
};

Firebase/Core/FIRAppAssociationRegistration.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ @implementation FIRAppAssociationRegistration
2020

2121
+ (nullable id)registeredObjectWithHost:(id)host
2222
key:(NSString *)key
23-
creationBlock:(id _Nullable (^)())creationBlock {
23+
creationBlock:(id _Nullable (^)(void))creationBlock {
2424
@synchronized(self) {
2525
SEL dictKey = @selector(registeredObjectWithHost:key:creationBlock:);
2626
NSMutableDictionary<NSString *, id> *objectsByKey = objc_getAssociatedObject(host, dictKey);

Firebase/Core/Private/FIRAppAssociationRegistration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
4141
*/
4242
+ (nullable ObjectType)registeredObjectWithHost:(id)host
4343
key:(NSString *)key
44-
creationBlock:(ObjectType _Nullable (^)())creationBlock;
44+
creationBlock:(ObjectType _Nullable (^)(void))creationBlock;
4545

4646
@end
4747

0 commit comments

Comments
 (0)