Index: Source/bindings/tests/results/core/V8TestNode.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestNode.cpp b/Source/bindings/tests/results/core/V8TestNode.cpp |
index 552cce9413e27eaccaa21365c6a6618592f4414a..2e34e5bd62c8e0404e30392bc8ce80ebf52805a8 100644 |
--- a/Source/bindings/tests/results/core/V8TestNode.cpp |
+++ b/Source/bindings/tests/results/core/V8TestNode.cpp |
@@ -20,7 +20,16 @@ |
namespace blink { |
+// Suppress warning: global constructors, because struct WrapperTypeInfo is trivial |
+// and does not depend on another global objects. |
+#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
+#pragma clang diagnostic push |
+#pragma clang diagnostic ignored "-Wglobal-constructors" |
+#endif |
const WrapperTypeInfo V8TestNode::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestNode::domTemplate, V8TestNode::refObject, V8TestNode::derefObject, V8TestNode::trace, 0, 0, V8TestNode::preparePrototypeObject, V8TestNode::installConditionallyEnabledProperties, "TestNode", &V8Node::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::NodeClassId, WrapperTypeInfo::InheritFromEventTarget, WrapperTypeInfo::Dependent, WrapperTypeInfo::WillBeGarbageCollectedObject }; |
+#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
+#pragma clang diagnostic pop |
+#endif |
// This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestNode.h. |
// For details, see the comment of DEFINE_WRAPPERTYPEINFO in |