-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix compilation of Apple native shim on newer Clang #108888
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,7 +151,7 @@ int32_t AppleCryptoNative_X509GetRawData(SecCertificateRef cert, CFDataRef* ppDa | |
| } | ||
|
|
||
| *ppDataOut = SecCertificateCopyData(cert); | ||
| *pOSStatus = *ppDataOut == NULL ? errSecParam : noErr; | ||
| *pOSStatus = *ppDataOut == NULL ? errSecParam : (OSStatus)noErr; | ||
|
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 feels like a weird one to me, or the Clang compiler being a little confused. We use The reason it complains here is it is the only place we don't assign it to some OSStatus as an intermediate, and use it in an expression directly mixing it with an OSStatus. The alternative is to use |
||
| return (*pOSStatus == noErr); | ||
| } | ||
|
|
||
|
|
||
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.
Both the enum types are
uint32_t.