From 1fa4ad0bbe83e2bc60c709948ab43d33aae7a4d2 Mon Sep 17 00:00:00 2001 From: Guy Kogus Date: Mon, 25 Dec 2017 14:53:52 +0000 Subject: [PATCH] Fix warnings in Xcode 9. --- .../FBNotifications/Internal/Utilities/FBNCardViewUtilities.h | 2 +- .../FBNotifications/Internal/Utilities/FBNCardViewUtilities.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.h b/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.h index 14a0806..386ac76 100644 --- a/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.h +++ b/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.h @@ -54,6 +54,6 @@ extern CGFloat FBNFloatAdjustToScreenScale(CGFloat value, NSRoundingMode roundin #pragma mark - Top Most View Controller ///-------------------------------------- -extern UIViewController *_Nullable FBNApplicationTopMostViewController(); +extern UIViewController *_Nullable FBNApplicationTopMostViewController(void); NS_ASSUME_NONNULL_END diff --git a/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.m b/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.m index a86013d..c8e097b 100644 --- a/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.m +++ b/iOS/FBNotifications/FBNotifications/Internal/Utilities/FBNCardViewUtilities.m @@ -118,7 +118,7 @@ CGFloat FBNFloatAdjustToScreenScale(CGFloat value, NSRoundingMode roundingMode) return value; } -UIViewController *_Nullable FBNApplicationTopMostViewController() { +UIViewController *_Nullable FBNApplicationTopMostViewController(void) { UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; UIViewController *viewController = keyWindow.rootViewController; while (viewController.presentedViewController && !viewController.presentedViewController.isBeingDismissed) {