Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5655

TSocketServer.swift:83:60: error: type 'CFSocketError' (aka 'Int') has no member 'success' breaks CI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Swift - Library
    • None

    Description

      /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 {
                                                   ~~~~~~~~~~~~~ ^~~~~~~
      

      And in the same file:

      /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: )
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: