Skip to content

Commit

Permalink
Added pragma disable for obsolete code in generated code (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
yardee committed May 6, 2024
1 parent 206ec83 commit 34a3e3f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//HintName: CollectionRegistrations.g.cs
// <auto-generated/>
#nullable enable
#pragma warning disable 612,618
using System;
using System.Runtime.CompilerServices;
[CompilerGenerated]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//HintName: CollectionRegistrations.g.cs
// <auto-generated/>
#nullable enable
#pragma warning disable 612,618
using System;
using System.Runtime.CompilerServices;
[CompilerGenerated]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//HintName: CollectionRegistrations.g.cs
// <auto-generated/>
#nullable enable
#pragma warning disable 612,618
using System;
using System.Runtime.CompilerServices;
[CompilerGenerated]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//HintName: CollectionRegistrations.g.cs
// <auto-generated/>
#nullable enable
#pragma warning disable 612,618
using System;
using System.Runtime.CompilerServices;
[CompilerGenerated]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//HintName: CollectionRegistrations.g.cs
// <auto-generated/>
#nullable enable
#pragma warning disable 612,618
using System;
using System.Runtime.CompilerServices;
[CompilerGenerated]
Expand Down
1 change: 1 addition & 0 deletions BTDB.SourceGenerator/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ static void GenerateCollectionRegistrations(SourceProductionContext context, Has
factoryCode.Append($$"""
// <auto-generated/>
#nullable enable
#pragma warning disable 612,618
using System;
using System.Runtime.CompilerServices;
[CompilerGenerated]
Expand Down

0 comments on commit 34a3e3f

Please sign in to comment.