Remove unused _info on non-debug builds
authorShawn Rutledge <shawn.rutledge@digia.com>
Tue, 12 Nov 2013 12:35:21 +0000 (13:35 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 12 Nov 2013 16:06:50 +0000 (17:06 +0100)
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>
src/qml/compiler/qv4regalloc.cpp

index 9d1f12e..a531fd3 100644 (file)
@@ -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() {