Skip to content

Commit bd676dc

Browse files
author
rstam
committed
Disabled a harmless warning.
1 parent 2f933a2 commit bd676dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BsonUnitTests/DefaultSerializer/BsonClassMapTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ private class A
4040
public int FieldMapped;
4141
[BsonElement("FieldMappedByAttribute")]
4242
private int fieldMappedByAttribute;
43+
#pragma warning disable 414 // fieldMappedByAttribute2 is assigned but its value is never used
4344
[BsonElement]
4445
private readonly int fieldMappedByAttribute2;
46+
#pragma warning restore
4547

4648
public int PropertyMapped { get; set; }
4749
public int PropertyMapped2 { get; private set; }

0 commit comments

Comments
 (0)