Skip to content

[Windows] @available unknown platform warnings #2908

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

Closed
wants to merge 1 commit into from
Closed

[Windows] @available unknown platform warnings #2908

wants to merge 1 commit into from

Conversation

benrimmington
Copy link
Contributor

Using @available(Windows) results in warning: unknown platform 'Windows' for attribute 'available'.

This pull request uses @available(*) within #if os(Windows) to avoid the warning.

Alternatively, support for @available(Windows) could be added (e.g. see swiftlang/swift#31686 for OpenBSD).

@benrimmington
Copy link
Contributor Author

@compnerd
Copy link
Member

I think that adding the availability is a better approach - I'll whip up a test and put up a PR for that.

@benrimmington
Copy link
Contributor Author

Fixed by: swiftlang/swift#34439

@benrimmington benrimmington deleted the unknown-platform-warnings branch December 27, 2020 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants