diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-11-12 13:35:21 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-12 17:06:50 +0100 |
commit | df123b216b808e64999994be3b21113a6d53db19 (patch) | |
tree | 103f8a02ab9d2ecaac845176bc0d979f50bf0f67 /src/qml | |
parent | 4ed95774ed15f195da157c7c17a45e0c8c895054 (diff) |
Remove unused _info on non-debug builds
Otherwise clang generates a warning which is fatal because of
treating warnings as errors.
Change-Id: I47c280edf6b0f8efa5ce24f9e92551304aed15fb
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/compiler/qv4regalloc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4regalloc.cpp b/src/qml/compiler/qv4regalloc.cpp index 9d1f12ec47..a531fd337d 100644 --- a/src/qml/compiler/qv4regalloc.cpp +++ b/src/qml/compiler/qv4regalloc.cpp @@ -644,7 +644,9 @@ namespace { class ResolutionPhase: protected StmtVisitor, protected ExprVisitor { QVector<LifeTimeInterval> _intervals; Function *_function; +#if !defined(QT_NO_DEBUG) RegAllocInfo *_info; +#endif const QHash<V4IR::Temp, int> &_assignedSpillSlots; QHash<V4IR::Temp, LifeTimeInterval> _intervalForTemp; const QVector<int> &_intRegs; @@ -663,11 +665,16 @@ public: const QVector<int> &intRegs, const QVector<int> &fpRegs) : _intervals(intervals) , _function(function) +#if !defined(QT_NO_DEBUG) , _info(info) +#endif , _assignedSpillSlots(assignedSpillSlots) , _intRegs(intRegs) , _fpRegs(fpRegs) { +#if defined(QT_NO_DEBUG) + Q_UNUSED(info) +#endif } void run() { |