From 422f4f688ae021c1de7fa7be96b217b99c626200 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@nokia.com> Date: Wed, 13 Apr 2011 08:50:43 +0200 Subject: [PATCH] Fix compiler warnings. --- src/libs/qmljsdebugclient/qdeclarativedebugclient.cpp | 2 +- src/plugins/coreplugin/externaltool.cpp | 1 + .../qmldesigner/designercore/model/rewriteactioncompressor.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/qmljsdebugclient/qdeclarativedebugclient.cpp b/src/libs/qmljsdebugclient/qdeclarativedebugclient.cpp index 14823fbb319..4393720b4f2 100644 --- a/src/libs/qmljsdebugclient/qdeclarativedebugclient.cpp +++ b/src/libs/qmljsdebugclient/qdeclarativedebugclient.cpp @@ -87,7 +87,7 @@ public Q_SLOTS: }; QDeclarativeDebugConnectionPrivate::QDeclarativeDebugConnectionPrivate(QDeclarativeDebugConnection *c) -: QObject(c), q(c), protocol(0), gotHello(false), device(0) +: QObject(c), q(c), protocol(0), device(0), gotHello(false) { protocol = new QPacketProtocol(q, this); QObject::connect(c, SIGNAL(connected()), this, SLOT(connected())); diff --git a/src/plugins/coreplugin/externaltool.cpp b/src/plugins/coreplugin/externaltool.cpp index 16fd9edcbdf..1088a98fb70 100644 --- a/src/plugins/coreplugin/externaltool.cpp +++ b/src/plugins/coreplugin/externaltool.cpp @@ -658,6 +658,7 @@ void ExternalToolRunner::error(QProcess::ProcessError error) FileManager::instance()->unexpectFileChange(m_expectedFileName); } // TODO inform about errors + Q_UNUSED(error); deleteLater(); } diff --git a/src/plugins/qmldesigner/designercore/model/rewriteactioncompressor.cpp b/src/plugins/qmldesigner/designercore/model/rewriteactioncompressor.cpp index 45cab4f498c..4033ef2f46b 100644 --- a/src/plugins/qmldesigner/designercore/model/rewriteactioncompressor.cpp +++ b/src/plugins/qmldesigner/designercore/model/rewriteactioncompressor.cpp @@ -236,6 +236,7 @@ void RewriteActionCompressor::compressPropertyActions(QList<RewriteAction *> &ac if (RemovePropertyRewriteAction *removeAction = action->asRemovePropertyRewriteAction()) { const AbstractProperty property = removeAction->property(); if (AddPropertyRewriteAction *addAction = addedProperties.value(property, 0)) { + Q_UNUSED(addAction); } else { removedProperties.insert(property, action); } -- GitLab