Skip to content
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

Unsafe Mutable Pointer Warning #762

Closed
pausanchezv opened this issue Apr 12, 2020 · 3 comments
Closed

Unsafe Mutable Pointer Warning #762

pausanchezv opened this issue Apr 12, 2020 · 3 comments

Comments

@pausanchezv
Copy link

Hello, after having updated my xcode to the latest version, I'm getting this warning. I'm using starscream in its version 4.0.0. The file is WSCompression.swift. I haven't found any fix on the internet for this. Could you help me please? This is the error:

Initialization of 'UnsafeMutablePointer' results in a dangling pointer

  1. Implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer' produces a pointer valid only for the duration of the call to 'init(_:)'

  2. Use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope

Thank you so very much.

@tfonfara
Copy link

Duplicate of #758 😉

@rudyrichter
Copy link

This looks to be fixed in #766

@daltoniam
Copy link
Owner

4.0.4 released!

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

No branches or pull requests

4 participants