From 24f97f12295a115c3b74725725c230501dc163c9 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 12 Nov 2018 09:54:42 -0600 Subject: [PATCH] compiler warning: discard result explicitly --- .../ConversationView/Cells/ConversationMediaView.swift | 4 ++-- Signal/src/call/Speakerbox/CallKitCallUIAdaptee.swift | 4 ++-- Signal/src/call/UserInterface/CallUIAdapter.swift | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/ConversationMediaView.swift b/Signal/src/ViewControllers/ConversationView/Cells/ConversationMediaView.swift index 265b57c24..7e1889f22 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/ConversationMediaView.swift +++ b/Signal/src/ViewControllers/ConversationView/Cells/ConversationMediaView.swift @@ -128,7 +128,7 @@ public class ConversationMediaView: UIView { animatedImageView.backgroundColor = Theme.offBackgroundColor addSubview(animatedImageView) animatedImageView.autoPinEdgesToSuperviewEdges() - addUploadProgressIfNecessary(animatedImageView) + _ = addUploadProgressIfNecessary(animatedImageView) loadBlock = { [weak self] in guard let strongSelf = self else { @@ -177,7 +177,7 @@ public class ConversationMediaView: UIView { stillImageView.backgroundColor = Theme.offBackgroundColor addSubview(stillImageView) stillImageView.autoPinEdgesToSuperviewEdges() - addUploadProgressIfNecessary(stillImageView) + _ = addUploadProgressIfNecessary(stillImageView) loadBlock = { [weak self] in guard let strongSelf = self else { return diff --git a/Signal/src/call/Speakerbox/CallKitCallUIAdaptee.swift b/Signal/src/call/Speakerbox/CallKitCallUIAdaptee.swift index 6e0970623..ee237667b 100644 --- a/Signal/src/call/Speakerbox/CallKitCallUIAdaptee.swift +++ b/Signal/src/call/Speakerbox/CallKitCallUIAdaptee.swift @@ -113,7 +113,7 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate { let call = SignalCall.outgoingCall(localId: UUID(), remotePhoneNumber: handle) // make sure we don't terminate audio session during call - self.audioSession.startAudioActivity(call.audioActivity) + _ = self.audioSession.startAudioActivity(call.audioActivity) // Add the new outgoing call to the app's list of calls. // So we can find it in the provider delegate callbacks. @@ -385,7 +385,7 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate { Logger.debug("Received") - self.audioSession.startAudioActivity(self.audioActivity) + _ = self.audioSession.startAudioActivity(self.audioActivity) self.audioSession.isRTCAudioEnabled = true } diff --git a/Signal/src/call/UserInterface/CallUIAdapter.swift b/Signal/src/call/UserInterface/CallUIAdapter.swift index a7cd703dd..44f733995 100644 --- a/Signal/src/call/UserInterface/CallUIAdapter.swift +++ b/Signal/src/call/UserInterface/CallUIAdapter.swift @@ -141,7 +141,7 @@ extension CallUIAdaptee { AssertIsOnMainThread() // make sure we don't terminate audio session during call - audioSession.startAudioActivity(call.audioActivity) + _ = audioSession.startAudioActivity(call.audioActivity) let callerName = self.contactsManager.displayName(forPhoneIdentifier: call.remotePhoneNumber) adaptee.reportIncomingCall(call, callerName: callerName)