Initialization of 'UnsafePointer' (aka 'UnsafePointer') results in a dangling pointer
and also gives instructions on how to address:
Implicit argument conversion from '[CChar]' (aka 'Array') to 'UnsafePointer' (aka 'UnsafePointer') produces a pointer valid only for the duration of the call to 'init(_:)'
Use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
Description:
Have a no warning when compiling
Actual behaviour: Swift 5.2 included in Xcode Version 11.4 beta (11N111s) reports 2 warnings:
var prefixChars = [CChar]()
and also gives instructions on how to address:
Environment
Package Manager:
Fuzi version: 3.1.1
Xcode version: Version 11.4 beta (11N111s)
How to reproduce:
Integrate project