Index: third_party/WebKit/Source/build/scripts/make_css_value_keywords.py |
diff --git a/third_party/WebKit/Source/build/scripts/make_css_value_keywords.py b/third_party/WebKit/Source/build/scripts/make_css_value_keywords.py |
index 8c2430d91a400f93d444eed09b8f679a7f14c850..9d17bcc73d3195a0f292faa155fc34e035717fd8 100755 |
--- a/third_party/WebKit/Source/build/scripts/make_css_value_keywords.py |
+++ b/third_party/WebKit/Source/build/scripts/make_css_value_keywords.py |
@@ -46,6 +46,12 @@ GPERF_TEMPLATE = """ |
#include "core/css/HashTools.h" |
#include <string.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' |
+#pragma warning(disable : 4302) |
+#endif |
+ |
namespace blink { |
static const char valueListStringPool[] = { |
%(value_keyword_strings)s |