Skip to content

Fix build warnings in NSOperation #551

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
Aug 17, 2016
Merged

Fix build warnings in NSOperation #551

merged 1 commit into from
Aug 17, 2016

Conversation

pushkarnk
Copy link
Member

No description provided.

@@ -383,8 +383,8 @@ extension NSData {
}


return other.withUnsafeBytes { (bytes2: UnsafePointer<Void>) -> Bool in
let bytes1 = bytes
Copy link
Member Author

@pushkarnk pushkarnk Aug 16, 2016

Choose a reason for hiding this comment

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

UnsafePointer<Void> needs to be replaced by UnsafeRawPointer. But is it applicable to withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) ?

@michael-lehew
Copy link
Contributor

The Data parts of this are handled by: #553 (which brings Data+NSData to mostly Swift3 parity).

@pushkarnk
Copy link
Member Author

@michael-lehew : I have reverted the NSData changes from this PR. Thanks.

@pushkarnk pushkarnk changed the title Fix build warnings in NSData and NSOperation Fix build warnings in NSOperation Aug 17, 2016
@phausler
Copy link
Contributor

looks good to me; built manually on linux.

@phausler phausler merged commit 5871161 into swiftlang:master Aug 17, 2016
@pushkarnk pushkarnk deleted the warnings branch August 18, 2016 06:11
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.

3 participants