Skip to content

[stdlib] Fixing compilation warnings #7314

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

Merged
merged 1 commit into from
Feb 8, 2017
Merged

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Feb 7, 2017

rdar://problem/30320630

<rdar://problem/30320630>
@moiseev moiseev requested a review from parkera February 7, 2017 22:47
@moiseev
Copy link
Contributor Author

moiseev commented Feb 7, 2017

@swift-ci Please test

Copy link
Contributor

@parkera parkera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also apply the Foundation changes to the same files in swift-corelibs-foundation and make sure it compiles and works there?

@@ -25,7 +25,7 @@ extension INRequestRideIntent {
paymentMethod: INPaymentMethod? = nil,
scheduledPickupTime: INDateComponentsRange? = nil
) {
if #available(iOS 10.3, watchOS 3.2, *) {
if #available(iOS 10.3, *) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct to drop availability here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole extension is only available in watchOS 3.2, so this check will always be true. (At least that what the compiler warning said).

@moiseev
Copy link
Contributor Author

moiseev commented Feb 8, 2017

@parkera I looked at a couple of files in xcorelibs-foundation and they don't have this code. Will compile it locally and fix the warnings. Thanks for pointing it out!

@parkera
Copy link
Contributor

parkera commented Feb 8, 2017

FYI we are stuck with some warnings because the compiler produces warnings about bridging on Darwin in code that is required for Linux.

@moiseev moiseev merged commit 8b95cc4 into swiftlang:master Feb 8, 2017
@moiseev moiseev deleted the warnings branch February 8, 2017 18:07
moiseev added a commit that referenced this pull request Feb 10, 2017
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