Commit 15bb30b0 authored by Erik Verbruggen's avatar Erik Verbruggen Committed by The Qt Project
Browse files

Fix compiler errors.


On Mavericks with Apple's Clang 5.0 (3.3 based):
../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:320:117: error: non-const reference cannot bind to bit-field 'm_attributesInPrevious'
  ...add(StructureTransitionTableHash::Key(RefPtr<UString::Rep>(existingTransition->m_nameInPrevious.get()), existingTransition->m_attributesInPrevious), exi...
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C++11 specific:
../3rdparty/javascriptcore/JavaScriptCore/bytecompiler/BytecodeGenerator.h:179:35: error: non-constant-expression cannot be narrowed from type 'size_t'
      (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
                LineInfo info = { instructions().size(), n->lineNo() };
                                  ^~~~~~~~~~~~~~~~~~~~~

Both occur in multiple places.

Task-number: QTBUG-34842

Change-Id: I98a29b51718a6e0db8749ac1b495e071e9fe479d
Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
parent 78985c5c
Branches
Tags
No related merge requests found
Showing with 24 additions and 12 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment