tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 246 forks source link

Initialization of 'UnsafePointer<UInt8>' results in a dangling pointer #161

Open tethridge opened 2 years ago

tethridge commented 2 years ago

Line 440 of WebSocket.swift causes a warning in Xcode. The warning is "Initialization of 'UnsafePointer' results in a dangling pointer".

strm.next_in = UnsafePointer(inflateEnd)

It is just a warning, but it would be nice to update it with the preferred syntax to eliminate the warning.