From ca645d278ca6a2b602208ee008e62b7dccef5374 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 24 May 2016 11:21:58 +0000 Subject: [PATCH] fix some compiler warnings in 3rd party JavaScriptCore upstream commits: https://github.com/qtproject/qtscript/commit/a2da34be8426b41047f895a3e8463d58baf3b576 Signed-off-by: Ivailo Monev --- .../JavaScriptCore/bytecompiler/BytecodeGenerator.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp index aef5e65cc..37ff7ffc8 100644 --- a/src/3rdparty/javascriptcore/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp +++ b/src/3rdparty/javascriptcore/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp @@ -1764,16 +1764,15 @@ RegisterID* BytecodeGenerator::emitNextPropertyName(RegisterID* dst, RegisterID* RegisterID* BytecodeGenerator::emitCatch(RegisterID* targetRegister, Label* start, Label* end) { -#if ENABLE(JIT) - HandlerInfo info = { start->bind(0, 0), end->bind(0, 0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth, CodeLocationLabel() }; -#else HandlerInfo info = { static_cast(start->bind(0, 0)), static_cast(end->bind(0, 0)), static_cast(instructions().size()), static_cast(m_dynamicScopeDepth + m_baseScopeDepth) - }; +#if ENABLE(JIT) + , CodeLocationLabel() #endif + }; m_codeBlock->addExceptionHandler(info); emitOpcode(op_catch); -- 2.11.0