Jens Geyer created THRIFT-5655:
----------------------------------

             Summary: TSocketServer.swift:83:60: error: type 'CFSocketError' 
(aka 'Int') has no member 'success' breaks CI
                 Key: THRIFT-5655
                 URL: https://issues.apache.org/jira/browse/THRIFT-5655
             Project: Thrift
          Issue Type: Bug
          Components: Swift - Library
            Reporter: Jens Geyer


{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