Skip to content

Commit 0142276

Browse files
authored
[Infra] Ignore deprecations in test utility (#10729)
* [Infra] Ignore deprecations in test utility * Style
1 parent d40bedd commit 0142276

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

FirebaseInstallations/Source/Tests/Utils/FIRTestKeychain.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ - (nullable instancetype)init {
3636
return nil;
3737
}
3838
}
39+
#pragma clang diagnostic push
40+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
3941
OSStatus result = SecKeychainCreate([keychainPath cStringUsingEncoding:NSUTF8StringEncoding], 0,
4042
"1", false, nil, &privateKeychain);
43+
#pragma clang diagnostic pop
4144
if (result != errSecSuccess) {
4245
NSError *error = [NSError errorWithDomain:NSOSStatusErrorDomain code:result userInfo:nil];
4346
NSLog(@"SecKeychainCreate error: %@", error);
@@ -50,7 +53,10 @@ - (nullable instancetype)init {
5053

5154
- (void)dealloc {
5255
if (self.testKeychainRef) {
56+
#pragma clang diagnostic push
57+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
5358
OSStatus result = SecKeychainDelete(self.testKeychainRef);
59+
#pragma clang diagnostic pop
5460
if (result != errSecSuccess) {
5561
NSError *error = [NSError errorWithDomain:NSOSStatusErrorDomain code:result userInfo:nil];
5662
NSLog(@"SecKeychainCreate error: %@", error);

0 commit comments

Comments
 (0)