summaryrefslogtreecommitdiff
path: root/src/third_party/s2/s2cell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/s2/s2cell.cc')
-rw-r--r--src/third_party/s2/s2cell.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/third_party/s2/s2cell.cc b/src/third_party/s2/s2cell.cc
index f01782fefe3..b6307cb58d4 100644
--- a/src/third_party/s2/s2cell.cc
+++ b/src/third_party/s2/s2cell.cc
@@ -16,8 +16,11 @@
//
// The expression below rounds up (43 + sizeof(void*)) to the nearest
// multiple of sizeof(void*).
+#pragma warning(push)
+#pragma warning( disable: 4146 )
COMPILE_ASSERT(sizeof(S2Cell) <= ((43+2*sizeof(void*)-1) & -sizeof(void*)),
S2Cell_is_getting_bloated);
+#pragma warning(pop)
S2Point S2Cell::GetVertexRaw(int k) const {
// Vertices are returned in the order SW, SE, NE, NW.