-
Notifications
You must be signed in to change notification settings - Fork 439
Fix build warnings #3002
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
Fix build warnings #3002
Conversation
@swift-ci Please test |
@swift-ci Please test |
@swift-ci Please test Windows |
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.
I quite dislike the #ifs for the imports, but I don't have a better suggestion.
Mostly, ensure that we only use `@_implementationOnly` if we build with `RESILIENT_LIBRARIES`. Also, `strerror` is marked as unsafe and deprecated on Windows. It looks like this is because `strerror` is not thread-safe. Switch to the thread-safe version `strerror_r` instead.
@swift-ci Please test |
@swift-ci Please test Windows |
7 similar comments
@swift-ci Please test Windows |
@swift-ci Please test Windows |
@swift-ci Please test Windows |
@swift-ci Please test Windows |
@swift-ci Please test Windows |
@swift-ci Please test Windows |
@swift-ci Please test Windows |
Mostly, ensure that we only use
@_implementationOnly
if we build withRESILIENT_LIBRARIES
.Also,
strerror
is marked as unsafe and deprecated on Windows. It looks like this is becausestrerror
is not thread-safe. Switch to the thread-safe versionstrerror_r
instead.