From 0ed9903df88b9935e7be849cb746df52fb657c94 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 3 Jul 2020 11:21:26 +0200 Subject: [PATCH] [AVFoundation] Ignore a few compiler warnings about missing overrides for comparison support. --- src/AVFoundation/AVAudioChannelLayout.cs | 7 +++++++ src/AVFoundation/AVAudioFormat.cs | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/AVFoundation/AVAudioChannelLayout.cs b/src/AVFoundation/AVAudioChannelLayout.cs index d21782731473..3c935e65c3b2 100644 --- a/src/AVFoundation/AVAudioChannelLayout.cs +++ b/src/AVFoundation/AVAudioChannelLayout.cs @@ -4,6 +4,13 @@ // Authors: // Miguel de Icaza (miguel@xamarin.com) // + +// 'AVAudioChannelLayout' defines operator == or operator != but does not override Object.Equals(object o) +#pragma warning disable 0660 +// 'AVAudioChannelLayout' defines operator == or operator != but does not override Object.GetHashCode() +#pragma warning disable 0661 +// In both of these cases, the NSObject Equals/GetHashCode implementation works fine, so we can ignore these warnings. + using Foundation; using ObjCRuntime; using AudioToolbox; diff --git a/src/AVFoundation/AVAudioFormat.cs b/src/AVFoundation/AVAudioFormat.cs index e9bca1408681..60e413607c94 100644 --- a/src/AVFoundation/AVAudioFormat.cs +++ b/src/AVFoundation/AVAudioFormat.cs @@ -4,6 +4,13 @@ // Authors: // Miguel de Icaza (miguel@xamarin.com) // + +// 'AVAudioFormat' defines operator == or operator != but does not override Object.Equals(object o) +#pragma warning disable 0660 +// 'AVAudioFormat' defines operator == or operator != but does not override Object.GetHashCode() +#pragma warning disable 0661 +// In both of these cases, the NSObject Equals/GetHashCode implementation works fine, so we can ignore these warnings. + using Foundation; using ObjCRuntime; using System;