-
Notifications
You must be signed in to change notification settings - Fork 216
Remove 64 bits warnings #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
damienrambout
wants to merge
6
commits into
nxtbgthng:develop
Choose a base branch
from
damienrambout:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
38192c6
Update project settings for Xcode 6
88025e5
Remove 64 bit conversion with precision loss warnings
a923a0a
Replace all integer string format keys into object format keys (conve…
9f5140b
Fix some format keys for integer values
0ccffe2
Restore Info.plist in project
74bd810
Restore Info.plist in project
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,7 +238,7 @@ + (id)tokenFromDefaultKeychainWithServiceProviderName:(NSString *)provider; | |
result = (__bridge_transfer NSDictionary *)cfResult; | ||
|
||
if (status != noErr) { | ||
NSAssert1(status == errSecItemNotFound, @"unexpected error while fetching token from keychain: %d", (int)status); | ||
NSAssert1(status == errSecItemNotFound, @"unexpected error while fetching token from keychain: %@", (int)status); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will not work. I think you meant to say |
||
return nil; | ||
} | ||
|
||
|
@@ -257,7 +257,7 @@ - (void)storeInDefaultKeychainWithServiceProviderName:(NSString *)provider; | |
nil]; | ||
[self removeFromDefaultKeychainWithServiceProviderName:provider]; | ||
OSStatus __attribute__((unused)) err = SecItemAdd((__bridge CFDictionaryRef)query, NULL); | ||
NSAssert1(err == noErr, @"error while adding token to keychain: %d", (int)err); | ||
NSAssert1(err == noErr, @"error while adding token to keychain: %@", (int)err); | ||
} | ||
|
||
- (void)removeFromDefaultKeychainWithServiceProviderName:(NSString *)provider; | ||
|
@@ -268,7 +268,7 @@ - (void)removeFromDefaultKeychainWithServiceProviderName:(NSString *)provider; | |
serviceName, kSecAttrService, | ||
nil]; | ||
OSStatus __attribute__((unused)) err = SecItemDelete((__bridge CFDictionaryRef)query); | ||
NSAssert1((err == noErr || err == errSecItemNotFound), @"error while deleting token from keychain: %d", (int)err); | ||
NSAssert1((err == noErr || err == errSecItemNotFound), @"error while deleting token from keychain: %@", @(err)); | ||
} | ||
|
||
#else | ||
|
@@ -287,7 +287,7 @@ + (id)tokenFromDefaultKeychainWithServiceProviderName:(NSString *)provider; | |
NULL, | ||
&item); | ||
if (err != noErr) { | ||
NSAssert1(err == errSecItemNotFound, @"unexpected error while fetching token from keychain: %d", err); | ||
NSAssert1(err == errSecItemNotFound, @"unexpected error while fetching token from keychain: %@", @(err)); | ||
return nil; | ||
} | ||
|
||
|
@@ -314,7 +314,7 @@ + (id)tokenFromDefaultKeychainWithServiceProviderName:(NSString *)provider; | |
SecKeychainItemFreeContent(&list, password); | ||
} else { | ||
// TODO find out why this always works in i386 and always fails on ppc | ||
NSLog(@"Error from SecKeychainItemCopyContent: %d", err); | ||
NSLog(@"Error from SecKeychainItemCopyContent: %@", @(err)); | ||
return nil; | ||
} | ||
CFRelease(item); | ||
|
@@ -336,7 +336,7 @@ OSStatus __attribute__((unused))err = SecKeychainAddGenericPassword(NULL, | |
[data bytes], | ||
NULL); | ||
|
||
NSAssert1(err == noErr, @"error while adding token to keychain: %d", err); | ||
NSAssert1(err == noErr, @"error while adding token to keychain: %@", @(err)); | ||
} | ||
|
||
- (void)removeFromDefaultKeychainWithServiceProviderName:(NSString *)provider; | ||
|
@@ -351,14 +351,14 @@ - (void)removeFromDefaultKeychainWithServiceProviderName:(NSString *)provider; | |
NULL, | ||
NULL, | ||
&item); | ||
NSAssert1((err == noErr || err == errSecItemNotFound), @"error while deleting token from keychain: %d", err); | ||
NSAssert1((err == noErr || err == errSecItemNotFound), @"error while deleting token from keychain: %@", @(err)); | ||
if (err == noErr) { | ||
err = SecKeychainItemDelete(item); | ||
} | ||
if (item) { | ||
CFRelease(item); | ||
} | ||
NSAssert1((err == noErr || err == errSecItemNotFound), @"error while deleting token from keychain: %d", err); | ||
NSAssert1((err == noErr || err == errSecItemNotFound), @"error while deleting token from keychain: %@", @(err)); | ||
} | ||
|
||
#endif | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you removed the Info.plist here?