File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
FirebaseInstallations/Source/Tests/Utils Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,11 @@ - (nullable instancetype)init {
36
36
return nil ;
37
37
}
38
38
}
39
+ #pragma clang diagnostic push
40
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
39
41
OSStatus result = SecKeychainCreate ([keychainPath cStringUsingEncoding: NSUTF8StringEncoding], 0 ,
40
42
" 1" , false , nil , &privateKeychain);
43
+ #pragma clang diagnostic pop
41
44
if (result != errSecSuccess) {
42
45
NSError *error = [NSError errorWithDomain: NSOSStatusErrorDomain code: result userInfo: nil ];
43
46
NSLog (@" SecKeychainCreate error: %@ " , error);
@@ -50,7 +53,10 @@ - (nullable instancetype)init {
50
53
51
54
- (void )dealloc {
52
55
if (self.testKeychainRef ) {
56
+ #pragma clang diagnostic push
57
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
53
58
OSStatus result = SecKeychainDelete (self.testKeychainRef );
59
+ #pragma clang diagnostic pop
54
60
if (result != errSecSuccess) {
55
61
NSError *error = [NSError errorWithDomain: NSOSStatusErrorDomain code: result userInfo: nil ];
56
62
NSLog (@" SecKeychainCreate error: %@ " , error);
You can’t perform that action at this time.
0 commit comments