Skip to content

Commit

Permalink
Suppress formatter-based serialization warnings in MetadataWriter (#6…
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson authored Jun 15, 2023
1 parent b287fd9 commit b76cd45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Compilers/Core/Portable/PEWriter/MetadataWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

#nullable disable

// We're not actually doing formatter-based serialization in this file.
// We're simply propagating along the attributes of symbols we are emitting to metadata.
#pragma warning disable SYSLIB0050 // 'FieldAttributes.NotSerialized' is obsolete: 'Formatter-based serialization is obsolete and should not be used.'

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
Expand Down

0 comments on commit b76cd45

Please sign in to comment.