Skip to content

Commit 7a05d8e

Browse files
committed
Suppress warnings in latest .NET 7.0.1 SDK.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent fbbe594 commit 7a05d8e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/MySqlConnector/MySqlDataSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ protected override void Dispose(bool disposing)
7777
{
7878
try
7979
{
80+
#pragma warning disable CA2012 // Safe because method completes synchronously
8081
if (disposing)
8182
DisposeAsync(IOBehavior.Synchronous).GetAwaiter().GetResult();
83+
#pragma warning restore CA2012
8284
}
8385
finally
8486
{

src/MySqlConnector/Utilities/TimerQueue.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
namespace MySqlConnector.Utilities;
22

3+
#pragma warning disable CA1001 // this is a Singleton, so doesn't need to be IDisposable
34
internal sealed class TimerQueue
5+
#pragma warning restore CA1001
46
{
57
public static TimerQueue Instance { get; } = new();
68

0 commit comments

Comments
 (0)