Skip to content

Commit 313f9f6

Browse files
authored
Silence Storage Unit Test nil warning. (#2150)
1 parent 3cd4e9c commit 313f9f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Example/Storage/Tests/Unit/FIRStoragePathTests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ - (void)testchildToRoot {
109109

110110
- (void)testChildByAppendingNilToRoot {
111111
FIRStoragePath *path = [[FIRStoragePath alloc] initWithBucket:@"bucket" object:nil];
112+
#pragma clang diagnostic push
113+
#pragma clang diagnostic ignored "-Wnonnull"
112114
FIRStoragePath *childPath = [path child:nil];
115+
#pragma clang diagnostic pop
113116
XCTAssertEqualObjects([childPath stringValue], @"gs://bucket/");
114117
}
115118

0 commit comments

Comments
 (0)