Skip to content

Foundation: resolve some warnings #16078

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
May 1, 2018

Conversation

jrose-apple
Copy link
Contributor

  • JSONEncoder.swift: tell the compiler that yes, this is supposed to be casting to 'T' and not 'T?'.

  • NSObject.swift: mark NSKeyValueObservation members explicitly @objc and @nonobjc.

  • NSStringAPI.swift: remove unnecessary @usableFromInline.

No intended functionality change.

- JSONEncoder.swift: tell the compiler that yes, this is supposed to
  be casting to 'T' and not 'T?'.

- NSObject.swift: mark NSKeyValueObservation members explicitly @objc
  and @nonobjc.

- NSStringAPI.swift: remove unnecessary @usableFromInline.

No intended functionality change.
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

It looks like none of these changes directly apply to swift-corelibs-foundation:

  • JSONEncoder.swift: sufficiently different in how it decodes URLs (and already has these parentheses)

  • NSObject.swift: no KVO on Linux

  • NSStringAPI.swift: still using @_inlineable @_versioned, so might as well wait for a general cleanup there

@itaiferber
Copy link
Contributor

I can't speak to the KVO changes, but the JSON and String ones look good to me!

@jrose-apple
Copy link
Contributor Author

Checked with David about the KVO change and he said it looks good. Merging!

@jrose-apple jrose-apple merged commit fc99de4 into swiftlang:master May 1, 2018
@jrose-apple jrose-apple deleted the heeded-warnings branch May 1, 2018 22:41
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