Skip to content

Commit

Permalink
Suppress compiler warnings in auto-generated code (#6474)
Browse files Browse the repository at this point in the history
Co-authored-by: Glen <glen.84@gmail.com>
  • Loading branch information
VaclavSir and glen-84 authored Jun 5, 2024
1 parent d786b2f commit 899be4f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static void WriteFileHeader(this CodeWriter writer)
writer.WriteIndentedLine("// <auto-generated/>");
writer.WriteLine();
writer.WriteIndentedLine("#nullable enable");
writer.WriteIndentedLine("#pragma warning disable");
writer.WriteLine();
writer.WriteIndentedLine("using System;");
writer.WriteIndentedLine("using System.Runtime.CompilerServices;");
Expand Down

0 comments on commit 899be4f

Please sign in to comment.