From 93aea89cad9482aee0c72e1a1f2e7abe0428db58 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:15:49 -0700 Subject: [PATCH] Suppress another Roslyn error (#2939) --- .../src/Microsoft/Data/SqlClient/TdsParserHelperClasses.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserHelperClasses.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserHelperClasses.cs index 4c33686f16..ea5d5ea578 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserHelperClasses.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserHelperClasses.cs @@ -821,9 +821,11 @@ public static string GetProtocolWarning(this SslProtocols protocol) #pragma warning disable SYSLIB0039 // Type or member is obsolete: TLS 1.0 & 1.1 are deprecated #endif #pragma warning disable CS0618 // Type or member is obsolete : SSL is deprecated +#pragma warning disable CA5397 // Do not use deprecated SslProtocols values #pragma warning disable CA5398 // Do not use deprecated SslProtocols values if ((protocol & (SslProtocols.Ssl2 | SslProtocols.Ssl3 | SslProtocols.Tls | SslProtocols.Tls11)) != SslProtocols.None) #pragma warning restore CA5398 // Do not use deprecated SslProtocols values +#pragma warning restore CA5397 // Do not use deprecated SslProtocols values #pragma warning restore CS0618 // Type or member is obsolete : SSL is deprecated #if NET8_0_OR_GREATER #pragma warning restore SYSLIB0039 // Type or member is obsolete: SSL and TLS 1.0 & 1.1 is deprecated