Index: third_party/WebKit/Source/build/scripts/make_css_property_names.py |
diff --git a/third_party/WebKit/Source/build/scripts/make_css_property_names.py b/third_party/WebKit/Source/build/scripts/make_css_property_names.py |
index 5049e0929636c55a05aacb0ad82d9d96962f201f..17d71a31f7de2f83d11315a161daf6c771484172 100755 |
--- a/third_party/WebKit/Source/build/scripts/make_css_property_names.py |
+++ b/third_party/WebKit/Source/build/scripts/make_css_property_names.py |
@@ -87,6 +87,13 @@ GPERF_TEMPLATE = """ |
#include "wtf/text/AtomicString.h" |
#include "wtf/text/WTFString.h" |
+#ifdef _MSC_VER |
+// Disable the warnings from casting a 64-bit pointer to 32-bit long |
+// warning C4302: 'type cast': truncation from 'char (*)[28]' to 'long' |
+// warning C4311: 'type cast': pointer truncation from 'char (*)[18]' to 'long' |
+#pragma warning(disable : 4302 4311) |
+#endif |
+ |
namespace blink { |
static const char propertyNameStringsPool[] = { |
%(property_name_strings)s |