Index: Source/bindings/tests/results/core/V8TestInterfaceEmpty.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceEmpty.cpp b/Source/bindings/tests/results/core/V8TestInterfaceEmpty.cpp |
index 6ea63bb60a926013a42b4bfd357d330d4b66717b..0c56deac04f459c17ade0bd88c76b3c88b9f07b7 100644 |
--- a/Source/bindings/tests/results/core/V8TestInterfaceEmpty.cpp |
+++ b/Source/bindings/tests/results/core/V8TestInterfaceEmpty.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 V8TestInterfaceEmpty::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceEmpty::domTemplate, V8TestInterfaceEmpty::refObject, V8TestInterfaceEmpty::derefObject, V8TestInterfaceEmpty::trace, 0, 0, V8TestInterfaceEmpty::preparePrototypeObject, V8TestInterfaceEmpty::installConditionallyEnabledProperties, "TestInterfaceEmpty", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; |
+#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
+#pragma clang diagnostic pop |
+#endif |
// This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfaceEmpty.h. |
// For details, see the comment of DEFINE_WRAPPERTYPEINFO in |