From 734fe1df1e7de59af69e713b1f34d2d02aec9c96 Mon Sep 17 00:00:00 2001 From: pawisoon Date: Thu, 6 Apr 2023 13:31:39 +0200 Subject: [PATCH] Fix for Trustkit not building on Xcode 14.3 #298 --- TrustKit/Dependencies/RSSwizzle/RSSwizzle.m | 2 +- TrustKit/configuration_utils.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TrustKit/Dependencies/RSSwizzle/RSSwizzle.m b/TrustKit/Dependencies/RSSwizzle/RSSwizzle.m index ae03d97d..4e37fd9b 100755 --- a/TrustKit/Dependencies/RSSwizzle/RSSwizzle.m +++ b/TrustKit/Dependencies/RSSwizzle/RSSwizzle.m @@ -267,7 +267,7 @@ static void swizzle(Class classToSwizzle, } -static NSMutableDictionary *swizzledClassesDictionary(){ +static NSMutableDictionary *swizzledClassesDictionary(void){ static NSMutableDictionary *swizzledClasses; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ diff --git a/TrustKit/configuration_utils.m b/TrustKit/configuration_utils.m index 14968835..d061dd70 100644 --- a/TrustKit/configuration_utils.m +++ b/TrustKit/configuration_utils.m @@ -99,7 +99,7 @@ static NSUInteger isSubdomain(NSString *domain, NSString *subdomain) return notedHostname; } -NSURLSessionConfiguration *ephemeralNSURLSessionConfiguration() { +NSURLSessionConfiguration *ephemeralNSURLSessionConfiguration(void) { NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration ephemeralSessionConfiguration]; #if TARGET_OS_IPHONE && !TARGET_OS_TV && !TARGET_OS_WATCH configuration.multipathServiceType = NSURLSessionMultipathServiceTypeHandover;