Fix some Xcode 11 warnings

This commit is contained in:
Cameron Gutman
2019-09-11 19:07:53 -07:00
parent 597aaa1bab
commit f51dbe4295
4 changed files with 9 additions and 4 deletions
+5
View File
@@ -194,6 +194,9 @@
[_controllerStreamLock unlock]; [_controllerStreamLock unlock];
} }
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-(void) unregisterControllerCallbacks:(GCController*) controller -(void) unregisterControllerCallbacks:(GCController*) controller
{ {
if (controller != NULL) { if (controller != NULL) {
@@ -428,6 +431,8 @@
return controller.extendedGamepad != nil || controller.gamepad != nil; return controller.extendedGamepad != nil || controller.gamepad != nil;
} }
#pragma clang diagnostic pop
+(int) getGamepadCount { +(int) getGamepadCount {
int count = 0; int count = 0;
@@ -44,7 +44,7 @@
UIAlertController* _pairAlert; UIAlertController* _pairAlert;
LoadingFrameViewController* _loadingFrame; LoadingFrameViewController* _loadingFrame;
UIScrollView* hostScrollView; UIScrollView* hostScrollView;
int currentPosition; FrontViewPosition currentPosition;
NSArray* _sortedAppList; NSArray* _sortedAppList;
NSCache* _boxArtCache; NSCache* _boxArtCache;
bool _background; bool _background;
+1 -2
View File
@@ -861,10 +861,9 @@
}; };
buildConfigurationList = FB290CE919B2C406004C83CF /* Build configuration list for PBXProject "Moonlight" */; buildConfigurationList = FB290CE919B2C406004C83CF /* Build configuration list for PBXProject "Moonlight" */;
compatibilityVersion = "Xcode 8.0"; compatibilityVersion = "Xcode 8.0";
developmentRegion = English; developmentRegion = en;
hasScannedForEncodings = 0; hasScannedForEncodings = 0;
knownRegions = ( knownRegions = (
English,
en, en,
Base, Base,
); );
@@ -365,10 +365,11 @@
}; };
buildConfigurationList = FB290E2919B37A4E004C83CF /* Build configuration list for PBXProject "moonlight-common" */; buildConfigurationList = FB290E2919B37A4E004C83CF /* Build configuration list for PBXProject "moonlight-common" */;
compatibilityVersion = "Xcode 8.0"; compatibilityVersion = "Xcode 8.0";
developmentRegion = English; developmentRegion = en;
hasScannedForEncodings = 0; hasScannedForEncodings = 0;
knownRegions = ( knownRegions = (
en, en,
Base,
); );
mainGroup = FB290E2519B37A4E004C83CF; mainGroup = FB290E2519B37A4E004C83CF;
productRefGroup = FB290E2F19B37A4E004C83CF /* Products */; productRefGroup = FB290E2F19B37A4E004C83CF /* Products */;