Closed djones6 closed 5 years ago
Updates for Swift 4.2 to resolve compilation warnings. Specifically:
Package.swift
Package@Swift-4.x.swift
Package@swift-4.x.swift
.swift-version
.travis.yml
module.modulemap
shim.h
errToString(ptr: UnsafeMutablePointer<Int8>?) -> String
Resolves compiler warnings relating to the use of system packages with Swift 4.2. (see: https://github.com/apple/swift-evolution/blob/master/proposals/0208-package-manager-system-library-targets.md)
Also resolves warnings due to string interpolation of UnsafeMutablePointer? in several error logging messages, which I suspect is related to the rework of implicitly unwrapped optionals: https://github.com/apple/swift-evolution/blob/master/proposals/0054-abolish-iuo.md
Description
Updates for Swift 4.2 to resolve compilation warnings. Specifically:
Package.swift
to Swift 4.2 format, and renames thePackage@Swift-4.x.swift
->Package@swift-4.x.swift
(SPM otherwise does not pick these up),.swift-version
to 4.2 and adjusts.travis.yml
accordingly,module.modulemap
andshim.h
files from OpenSSL into a new target in this package,errToString(ptr: UnsafeMutablePointer<Int8>?) -> String
helper to avoid string interpolation warnings with optionals.Motivation and Context
Resolves compiler warnings relating to the use of system packages with Swift 4.2. (see: https://github.com/apple/swift-evolution/blob/master/proposals/0208-package-manager-system-library-targets.md)
Also resolves warnings due to string interpolation of UnsafeMutablePointer? in several error logging messages, which I suspect is related to the rework of implicitly unwrapped optionals: https://github.com/apple/swift-evolution/blob/master/proposals/0054-abolish-iuo.md
How Has This Been Tested?
Checklist: