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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jensg Jens Geyer

            Dates

              Created:
              Updated:

              Slack

                Issue deployment