Fix release mode warnings about unused variables.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 3 Apr 2012 07:43:34 +0000 (09:43 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 10:45:46 +0000 (12:45 +0200)
Variables that are only used in asserts.

Change-Id: I0984b676ad9b67f5ae72266b8540e8054163918f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/corelib/thread/qthread_win.cpp
src/gui/kernel/qplatformintegration_qpa.cpp
src/gui/painting/qpainter.cpp

index 38fb6ef..1cde07e 100644 (file)
@@ -238,6 +238,7 @@ DWORD WINAPI qt_adopted_thread_watcher_function(LPVOID)
                 QThread *thread = data->thread;
                 Q_ASSERT(thread);
                 QThreadPrivate *thread_p = static_cast<QThreadPrivate *>(QObjectPrivate::get(thread));
+                Q_UNUSED(thread_p)
                 Q_ASSERT(!thread_p->finished);
                 thread_p->finish(thread);
             }
index 4efd2d8..5269d8f 100644 (file)
@@ -247,6 +247,7 @@ QPlatformSharedGraphicsCache *QPlatformIntegration::createPlatformSharedGraphics
 */
 QPaintEngine *QPlatformIntegration::createImagePaintEngine(QPaintDevice *paintDevice) const
 {
+    Q_UNUSED(paintDevice)
     return 0;
 }
 
index eafbe87..8912d19 100644 (file)
@@ -7270,6 +7270,7 @@ void QPainter::setRedirected(const QPaintDevice *device,
                              const QPoint &offset)
 {
     Q_ASSERT(device != 0);
+    Q_UNUSED(device)
     Q_UNUSED(replacement)
     Q_UNUSED(offset)
     qWarning("QPainter::setRedirected(): ignoring call to deprecated function, use QWidget::render() instead");