Skip to content

Commit fa514c4

Browse files
authored
Add back fix for g3 warnings (pt 2) (#8646)
* Add back fix for g3 warnings * Add back fix for g3 warnings (pt 2)
1 parent 8a61e77 commit fa514c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Functions/Example/Tests/FIRFunctionsTests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,11 @@ - (void)testCallFunctionWhenAppCheckIsInstalledAndFACTokenError {
197197

198198
XCTestExpectation *httpRequestExpectation =
199199
[self expectationWithDescription:@"HTTPRequestExpectation"];
200+
__weak __auto_type weakSelf = self;
200201
_fetcherService.testBlock = ^(GTMSessionFetcher *_Nonnull fetcherToTest,
201202
GTMSessionFetcherTestResponse _Nonnull testResponse) {
203+
// __unused to avoid warning in Xcode 12+ in g3.
204+
__unused __auto_type self = weakSelf;
202205
[httpRequestExpectation fulfill];
203206

204207
NSString *appCheckTokenHeader =

0 commit comments

Comments
 (0)