diff --git a/src/AudioUnit/AUParameter.cs b/src/AudioUnit/AUParameter.cs index bad7e3f8ad50..036d792eb7f5 100644 --- a/src/AudioUnit/AUParameter.cs +++ b/src/AudioUnit/AUParameter.cs @@ -23,12 +23,16 @@ public string GetString (float? value) public void SetValue (float value, AUParameterObserverToken originator) { +#pragma warning disable CS0618 SetValue (value, originator.ObserverToken); +#pragma warning restore CS0618 } public void SetValue (float value, AUParameterObserverToken originator, ulong hostTime) { +#pragma warning disable CS0618 SetValue (value, originator.ObserverToken, hostTime); +#pragma warning restore CS0618 } } #endif diff --git a/src/AudioUnit/AUParameterNode.cs b/src/AudioUnit/AUParameterNode.cs index 792b8693127f..3ee8cb4b5366 100644 --- a/src/AudioUnit/AUParameterNode.cs +++ b/src/AudioUnit/AUParameterNode.cs @@ -11,7 +11,9 @@ public AUParameterObserverToken CreateTokenByAddingParameterObserver (AUParamete if (observer == null) throw new ArgumentNullException ("observer"); +#pragma warning disable CS0618 IntPtr observerToken = TokenByAddingParameterObserver (observer); +#pragma warning restore CS0618 return new AUParameterObserverToken { ObserverToken = observerToken @@ -23,7 +25,9 @@ public AUParameterObserverToken CreateTokenByAddingParameterRecordingObserver (A if (observer == null) throw new ArgumentNullException ("observer"); +#pragma warning disable CS0618 IntPtr observerToken = TokenByAddingParameterRecordingObserver (observer); +#pragma warning restore CS0618 return new AUParameterObserverToken { ObserverToken = observerToken @@ -32,7 +36,9 @@ public AUParameterObserverToken CreateTokenByAddingParameterRecordingObserver (A public void RemoveParameterObserver (AUParameterObserverToken token) { +#pragma warning disable CS0618 RemoveParameterObserver (token.ObserverToken); +#pragma warning restore CS0618 } } } diff --git a/src/BusinessChat/BCChatAction.cs b/src/BusinessChat/BCChatAction.cs index 306b13a3ba5f..d422dc8832cf 100644 --- a/src/BusinessChat/BCChatAction.cs +++ b/src/BusinessChat/BCChatAction.cs @@ -14,7 +14,7 @@ public static void OpenTranscript (string businessIdentifier, Dictionary.FromObjectsAndKeys (values, keys)) + using (var dict = NSDictionary.FromObjectsAndKeys (values, keys, keys.Length)) OpenTranscript (businessIdentifier, dict); } } diff --git a/src/Foundation/NSFileManager.cs b/src/Foundation/NSFileManager.cs index f68b14be8bb9..4cdc662cb80b 100644 --- a/src/Foundation/NSFileManager.cs +++ b/src/Foundation/NSFileManager.cs @@ -407,8 +407,6 @@ internal static NSFileSystemAttributes FromDictionary (NSDictionary dict) if (dict == null) return null; var ret = new NSFileSystemAttributes (dict); - ulong l = 0; - uint i = 0; ret.Size = NSFileAttributes.fetch_ulong (dict, NSFileManager.SystemSize) ?? 0; ret.FreeSize = NSFileAttributes.fetch_ulong (dict, NSFileManager.SystemFreeSize) ?? 0; ret.Nodes = NSFileAttributes.fetch_long (dict, NSFileManager.SystemNodes) ?? 0;