Index: Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp b/Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp |
index 3e0de777698a560254584ba8769230b8315dc3db..da92c9535ea44624925bdc40c662e6998eb279c0 100644 |
--- a/Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp |
+++ b/Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp |
@@ -19,7 +19,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 V8TestInterfaceDocument::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceDocument::domTemplate, V8TestInterfaceDocument::refObject, V8TestInterfaceDocument::derefObject, V8TestInterfaceDocument::trace, 0, 0, V8TestInterfaceDocument::preparePrototypeObject, V8TestInterfaceDocument::installConditionallyEnabledProperties, "TestInterfaceDocument", &V8Document::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 TestInterfaceDocument.h. |
// For details, see the comment of DEFINE_WRAPPERTYPEINFO in |