From 5fb2385671ef5b39e02b4c91f2fa188cf6542073 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Mon, 1 Apr 2024 15:21:45 +0200 Subject: [PATCH] Fix compiler warnings. --- ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomTaskType.cs | 1 + ICSharpCode.Decompiler.Tests/TestCases/Pretty/QualifierTests.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomTaskType.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomTaskType.cs index 1d077a688..502463134 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomTaskType.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomTaskType.cs @@ -144,6 +144,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.Issue1788 { +#pragma warning disable CS8981 [AsyncMethodBuilder(typeof(builder))] internal class async { diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/QualifierTests.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/QualifierTests.cs index 144ab4110..6034c74c7 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/QualifierTests.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/QualifierTests.cs @@ -139,6 +139,7 @@ namespace ICSharpCode.Decompiler.Tests.Pretty } } +#pragma warning disable CS8981 private class i { public static void Test()