From: Ivailo Monev Date: Tue, 24 May 2016 11:21:58 +0000 (+0000) Subject: fix some compiler warnings in 3rd party JavaScriptCore X-Git-Tag: 4.12.0~7305 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ca645d278ca6a2b602208ee008e62b7dccef5374;p=kde%2FKatie.git fix some compiler warnings in 3rd party JavaScriptCore upstream commits: https://github.com/qtproject/qtscript/commit/a2da34be8426b41047f895a3e8463d58baf3b576 Signed-off-by: Ivailo Monev --- 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);