From 40e82cbd2a61519334f3a8cbdcebb1f2dc0555b8 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Tue, 17 May 2022 08:54:35 +0800 Subject: [PATCH] Suppress CS8981 in generated source --- src/google/protobuf/compiler/csharp/csharp_reflection_class.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc b/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc index 644fbf16f9..d9ab4b49b0 100644 --- a/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc +++ b/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc @@ -128,7 +128,7 @@ void ReflectionClassGenerator::WriteIntroduction(io::Printer* printer) { "// Generated by the protocol buffer compiler. DO NOT EDIT!\n" "// source: $file_name$\n" "// \n" - "#pragma warning disable 1591, 0612, 3021\n" + "#pragma warning disable 1591, 0612, 3021, 8981\n" "#region Designer generated code\n" "\n" "using pb = global::Google.Protobuf;\n"