summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-03-23 21:30:37 -0700
committerJan Kotas <jkotas@microsoft.com>2016-03-23 21:30:37 -0700
commitc1a834047f00d63ce74eab52c45b1fbe3b60bf62 (patch)
tree3aec804afb447379be38543a03ed5625493508b9
parentcec26a62bbdf9f72af120ac7ef6fa2e9903684fa (diff)
downloadcoreclr-c1a834047f00d63ce74eab52c45b1fbe3b60bf62.tar.gz
coreclr-c1a834047f00d63ce74eab52c45b1fbe3b60bf62.tar.bz2
coreclr-c1a834047f00d63ce74eab52c45b1fbe3b60bf62.zip
Fix build break in nativeformatreader.h
[tfs-changeset: 1589424]
-rw-r--r--src/vm/nativeformatreader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vm/nativeformatreader.h b/src/vm/nativeformatreader.h
index 0139ea7d4f..cfebb498ca 100644
--- a/src/vm/nativeformatreader.h
+++ b/src/vm/nativeformatreader.h
@@ -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