aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-08-04 07:10:36 +0100
committerJon Skeet <jonskeet@google.com>2015-08-04 07:10:36 +0100
commit99a81d297c6ddc5aaab86273b4a98c25bec2e833 (patch)
tree2f6214d04ab48434dc6b3ce56417884d07977d7b /csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
parentdc80689af3951d078cb556588eece89dd6860c91 (diff)
downloadprotobuf-99a81d297c6ddc5aaab86273b4a98c25bec2e833.tar.gz
protobuf-99a81d297c6ddc5aaab86273b4a98c25bec2e833.tar.bz2
protobuf-99a81d297c6ddc5aaab86273b4a98c25bec2e833.zip
Fix build warnings around unused variables
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/FieldCodecTest.cs')
-rw-r--r--csharp/src/Google.Protobuf.Test/FieldCodecTest.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs b/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
index 6f145a44..38ba227f 100644
--- a/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
+++ b/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
@@ -39,6 +39,7 @@ namespace Google.Protobuf
{
public class FieldCodecTest
{
+#pragma warning disable 0414 // Used by tests via reflection - do not remove!
private static readonly List<ICodecTestData> Codecs = new List<ICodecTestData>
{
new FieldCodecTestData<bool>(FieldCodec.ForBool(100), true, "Bool"),
@@ -61,6 +62,7 @@ namespace Google.Protobuf
new FieldCodecTestData<ForeignMessage>(
FieldCodec.ForMessage(100, ForeignMessage.Parser), new ForeignMessage { C = 10 }, "Message"),
};
+#pragma warning restore 0414
[Test, TestCaseSource("Codecs")]
public void RoundTripWithTag(ICodecTestData codec)