From f51dbe42954137203691fbd9a0a4b7ace7892b4b Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 11 Sep 2019 19:07:53 -0700 Subject: [PATCH] Fix some Xcode 11 warnings --- Limelight/Input/ControllerSupport.m | 5 +++++ Limelight/ViewControllers/MainFrameViewController.m | 2 +- Moonlight.xcodeproj/project.pbxproj | 3 +-- moonlight-common/moonlight-common.xcodeproj/project.pbxproj | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Limelight/Input/ControllerSupport.m b/Limelight/Input/ControllerSupport.m index b460a42..f5bdece 100644 --- a/Limelight/Input/ControllerSupport.m +++ b/Limelight/Input/ControllerSupport.m @@ -194,6 +194,9 @@ [_controllerStreamLock unlock]; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + -(void) unregisterControllerCallbacks:(GCController*) controller { if (controller != NULL) { @@ -428,6 +431,8 @@ return controller.extendedGamepad != nil || controller.gamepad != nil; } +#pragma clang diagnostic pop + +(int) getGamepadCount { int count = 0; diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index f9433d3..c6f6ade 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -44,7 +44,7 @@ UIAlertController* _pairAlert; LoadingFrameViewController* _loadingFrame; UIScrollView* hostScrollView; - int currentPosition; + FrontViewPosition currentPosition; NSArray* _sortedAppList; NSCache* _boxArtCache; bool _background; diff --git a/Moonlight.xcodeproj/project.pbxproj b/Moonlight.xcodeproj/project.pbxproj index 9eb473c..56138de 100644 --- a/Moonlight.xcodeproj/project.pbxproj +++ b/Moonlight.xcodeproj/project.pbxproj @@ -861,10 +861,9 @@ }; buildConfigurationList = FB290CE919B2C406004C83CF /* Build configuration list for PBXProject "Moonlight" */; compatibilityVersion = "Xcode 8.0"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( - English, en, Base, ); diff --git a/moonlight-common/moonlight-common.xcodeproj/project.pbxproj b/moonlight-common/moonlight-common.xcodeproj/project.pbxproj index f6ae69d..71314bd 100644 --- a/moonlight-common/moonlight-common.xcodeproj/project.pbxproj +++ b/moonlight-common/moonlight-common.xcodeproj/project.pbxproj @@ -365,10 +365,11 @@ }; buildConfigurationList = FB290E2919B37A4E004C83CF /* Build configuration list for PBXProject "moonlight-common" */; compatibilityVersion = "Xcode 8.0"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = FB290E2519B37A4E004C83CF; productRefGroup = FB290E2F19B37A4E004C83CF /* Products */;