summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/JSGlobalData.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSGlobalData.h')
-rw-r--r--Source/JavaScriptCore/runtime/JSGlobalData.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/runtime/JSGlobalData.h b/Source/JavaScriptCore/runtime/JSGlobalData.h
index 90925778b..59a672f67 100644
--- a/Source/JavaScriptCore/runtime/JSGlobalData.h
+++ b/Source/JavaScriptCore/runtime/JSGlobalData.h
@@ -129,6 +129,10 @@ namespace JSC {
#if ENABLE(DFG_JIT)
class ConservativeRoots;
+#if COMPILER(MSVC)
+#pragma warning(push)
+#pragma warning(disable: 4200) // Disable "zero-sized array in struct/union" warning
+#endif
struct ScratchBuffer {
ScratchBuffer()
: m_activeLength(0)
@@ -151,6 +155,9 @@ namespace JSC {
size_t m_activeLength;
void* m_buffer[0];
};
+#if COMPILER(MSVC)
+#pragma warning(pop)
+#endif
#endif
class JSGlobalData : public ThreadSafeRefCounted<JSGlobalData> {