Fix compiler warnings.

This commit is contained in:
Friedemann Kleint
2011-04-13 08:50:43 +02:00
parent fb205f2e4d
commit 422f4f688a
3 changed files with 3 additions and 1 deletions

View File

@@ -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()));

View File

@@ -658,6 +658,7 @@ void ExternalToolRunner::error(QProcess::ProcessError error)
FileManager::instance()->unexpectFileChange(m_expectedFileName);
}
// TODO inform about errors
Q_UNUSED(error);
deleteLater();
}

View File

@@ -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);
}