Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress compiler warnings in auto-generated code #6474

Merged
merged 10 commits into from
Jun 5, 2024
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