diff options
author | Jose <jose@zeroc.com> | 2019-04-01 19:08:36 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-04-01 19:08:36 +0200 |
commit | a9009fec56efd7223d9a5cb04a128d40053e4831 (patch) | |
tree | 9e5f056550902f203dc7a3a84f16b6bdbfe1b7b7 /swift/src | |
parent | Fixes for check if a structure type contains class members (diff) | |
download | ice-a9009fec56efd7223d9a5cb04a128d40053e4831.tar.bz2 ice-a9009fec56efd7223d9a5cb04a128d40053e4831.tar.xz ice-a9009fec56efd7223d9a5cb04a128d40053e4831.zip |
warning fixes
Diffstat (limited to 'swift/src')
-rw-r--r-- | swift/src/Ice/InputStream.swift | 6 | ||||
-rw-r--r-- | swift/src/Ice/Proxy.swift | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/swift/src/Ice/InputStream.swift b/swift/src/Ice/InputStream.swift index 3bbabc683d0..b3edf93b0ee 100644 --- a/swift/src/Ice/InputStream.swift +++ b/swift/src/Ice/InputStream.swift @@ -1052,14 +1052,14 @@ private class EncapsDecoder10: EncapsDecoder { // // Read the first slice header. // - try startSlice() + _ = try startSlice() let mostDerivedId = typeId! while true { // // Look for user exception // - var userExceptionType: UserException.Type? = ClassResolver.resolve(typeId: typeId) + let userExceptionType: UserException.Type? = ClassResolver.resolve(typeId: typeId) // // We found the exception. @@ -1078,7 +1078,7 @@ private class EncapsDecoder10: EncapsDecoder { // try skipSlice() do { - try startSlice() + _ = try startSlice() } catch let ex as UnmarshalOutOfBoundsException { // // An oversight in the 1.0 encoding means there is no marker to indicate diff --git a/swift/src/Ice/Proxy.swift b/swift/src/Ice/Proxy.swift index e5e0dd3c168..55c5d93baa3 100644 --- a/swift/src/Ice/Proxy.swift +++ b/swift/src/Ice/Proxy.swift @@ -254,10 +254,10 @@ public extension ObjectPrx { sentFlags: sentFlags) } - public func ice_invoke(operation: String, - mode: OperationMode, - inEncaps: [UInt8], - context: Context? = nil) throws -> (Bool, [UInt8]) { + func ice_invoke(operation: String, + mode: OperationMode, + inEncaps: [UInt8], + context: Context? = nil) throws -> (Bool, [UInt8]) { return try inEncaps.withUnsafeBufferPointer { var ok = Bool() let ins = try InputStream(communicator: _impl.communicator, |