From ec07b5d62a526ae2423040b4cc41e9e9f59a2fbd Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sat, 9 Dec 2023 18:42:11 -0500 Subject: [PATCH] Fix warnings produced by recent changes --- Sources/SwiftGodot/Core/SignalSupport.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftGodot/Core/SignalSupport.swift b/Sources/SwiftGodot/Core/SignalSupport.swift index bc6c0ce2d..cbcb59f1f 100644 --- a/Sources/SwiftGodot/Core/SignalSupport.swift +++ b/Sources/SwiftGodot/Core/SignalSupport.swift @@ -110,7 +110,7 @@ public class SimpleSignal { callback () guard let signalProxy else { return } signalProxy.proxy = nil - signalProxy.callDeferred(method: "free") + _ = signalProxy.callDeferred(method: "free") } } else { signalProxy.proxy = { args in @@ -130,7 +130,7 @@ public class SimpleSignal { public func disconnect (_ token: Object) { guard let signalProxy = token as? SignalProxy else { return } signalProxy.proxy = nil - signalProxy.callDeferred(method: "free") + _ = signalProxy.callDeferred(method: "free") target.disconnect(signal: signalName, callable: Callable (object: token, method: SignalProxy.proxyName)) }