Fix build break in nativeformatreader.h
authorJan Kotas <jkotas@microsoft.com>
Thu, 24 Mar 2016 04:30:37 +0000 (21:30 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 24 Mar 2016 04:30:37 +0000 (21:30 -0700)
[tfs-changeset: 1589424]

src/vm/nativeformatreader.h

index 0139ea7..cfebb49 100644 (file)
@@ -181,6 +181,10 @@ namespace NativeFormat
             return offset;
         }
 
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4702) // Disable unreachable code warning
+#endif
         uint SkipInteger(uint offset)
         {
             EnsureOffsetInRange(offset, 0);
@@ -216,6 +220,9 @@ namespace NativeFormat
                 return offset;
             }
         }
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
     };
 
     class NativeParser