You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2022/10/16 09:36:00 UTC
[jira] [Created] (THRIFT-5655) TSocketServer.swift:83:60: error: type 'CFSocketError' (aka 'Int') has no member 'success' breaks CI
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)