[ 
https://issues.apache.org/jira/browse/THRIFT-5655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Geyer updated THRIFT-5655:
-------------------------------
    Summary: Swift library fails to build on Swift 6.x  (was: 
TSocketServer.swift:83:60: error: type 'CFSocketError' (aka 'Int') has no 
member 'success' breaks CI)

> Swift library fails to build on Swift 6.x
> -----------------------------------------
>
>                 Key: THRIFT-5655
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5655
>             Project: Thrift
>          Issue Type: Bug
>          Components: Swift - Library
>            Reporter: Jens Geyer
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code}
> /thrift/src/lib/swift/Sources/TSocketServer.swift:83:60: error: type 
> 'CFSocketError' (aka 'Int') has no member 'success'
>       if CFSocketSetAddress(sock, cfaddr) != CFSocketError.success { 
> //kCFSocketSuccess {
>                                              ~~~~~~~~~~~~~ ^~~~~~~
> {code}
> And in the same file:
> {code}
> /thrift/src/lib/swift/Sources/LinuxHelper.swift:30:16: warning: 
> 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 'bitPattern:' 
> initializer on 'UInt'
>     let cast = unsafeBitCast(rhs, to: UInt.self)
>                ^~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~
>                UInt(bitPattern: )
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to