From 364aa11345fb44e9f774798fb7cdf94e9b20082a Mon Sep 17 00:00:00 2001 From: Emilien Stremsdoerfer Date: Tue, 24 May 2022 14:22:44 -0700 Subject: [PATCH] Fixing "Variable 'success' set but not used" error I don't fully understand why this one was not breaking at some point but `errorString` was. --- AppFramework/DistantObject/GREYHostApplicationDistantObject.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppFramework/DistantObject/GREYHostApplicationDistantObject.m b/AppFramework/DistantObject/GREYHostApplicationDistantObject.m index 7407b97da..3ec5daf20 100644 --- a/AppFramework/DistantObject/GREYHostApplicationDistantObject.m +++ b/AppFramework/DistantObject/GREYHostApplicationDistantObject.m @@ -84,7 +84,7 @@ static void InitiateCommunicationWithTest() { NSBundle *mainBundle = [NSBundle mainBundle]; NSArray *bundlePaths = [mainBundle pathsForResourcesOfType:@"bundle" inDirectory:@"EarlGreyHelperBundles"]; - BOOL success = NO; + __unused BOOL success = NO; NSError *error; for (NSString *bundlePath in bundlePaths) { NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];