Permalink
Browse files

Disabled a harmless warning.

  • Loading branch information...
1 parent 2f933a2 commit bd676dcfba8b6e4aba1a0afaf01ff4ec25ab4d1f rstam committed Apr 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 BsonUnitTests/DefaultSerializer/BsonClassMapTests.cs
View
2 BsonUnitTests/DefaultSerializer/BsonClassMapTests.cs
@@ -40,8 +40,10 @@ private class A
public int FieldMapped;
[BsonElement("FieldMappedByAttribute")]
private int fieldMappedByAttribute;
+#pragma warning disable 414 // fieldMappedByAttribute2 is assigned but its value is never used
[BsonElement]
private readonly int fieldMappedByAttribute2;
+#pragma warning restore
public int PropertyMapped { get; set; }
public int PropertyMapped2 { get; private set; }

0 comments on commit bd676dc

Please sign in to comment.