summaryrefslogtreecommitdiffstats
path: root/src/serviceframework
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-06-20 13:37:30 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-20 05:55:16 +0200
commite766fd55a8818c2ae2fa42c643ed773b8bd85eed (patch)
tree5a2922877eebc477693dbe920847cad2ab07865a /src/serviceframework
parenta1f8a67d9725742507ba087bac939f18c9aac2b3 (diff)
Fix warnings about declared-but-unused symbols.
Change-Id: I74f7513b2492308369cc6acbe77d928325f82de8 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
Diffstat (limited to 'src/serviceframework')
-rw-r--r--src/serviceframework/ipc/qremoteserviceregister_dbus_p.cpp2
-rw-r--r--src/serviceframework/qservicedebuglog.cpp2
-rw-r--r--src/serviceframework/qservicedebuglog_p.h6
3 files changed, 9 insertions, 1 deletions
diff --git a/src/serviceframework/ipc/qremoteserviceregister_dbus_p.cpp b/src/serviceframework/ipc/qremoteserviceregister_dbus_p.cpp
index 1adc8082..ac2d8d76 100644
--- a/src/serviceframework/ipc/qremoteserviceregister_dbus_p.cpp
+++ b/src/serviceframework/ipc/qremoteserviceregister_dbus_p.cpp
@@ -393,7 +393,7 @@ QObject* QRemoteServiceRegisterPrivate::proxyForService(const QRemoteServiceRegi
Returns true is the service is running
*/
-bool QRemoteServiceRegisterPrivate::isServiceRunning(const QRemoteServiceRegister::Entry &entry, const QString &location)
+bool QRemoteServiceRegisterPrivate::isServiceRunning(const QRemoteServiceRegister::Entry &entry, const QString & /*location*/)
{
QDBusConnection connection = QDBusConnection::sessionBus();
if (!connection.isConnected()) {
diff --git a/src/serviceframework/qservicedebuglog.cpp b/src/serviceframework/qservicedebuglog.cpp
index c573389d..cbcff5bf 100644
--- a/src/serviceframework/qservicedebuglog.cpp
+++ b/src/serviceframework/qservicedebuglog.cpp
@@ -173,6 +173,8 @@ void QServiceDebugLog::logMessage(QServiceDebugMessage *msg)
}
delete msg->buffer;
}
+#else
+ Q_UNUSED(msg)
#endif
}
diff --git a/src/serviceframework/qservicedebuglog_p.h b/src/serviceframework/qservicedebuglog_p.h
index c45918f1..7717d5d3 100644
--- a/src/serviceframework/qservicedebuglog_p.h
+++ b/src/serviceframework/qservicedebuglog_p.h
@@ -140,6 +140,7 @@ inline QServiceDebugValue QServiceDebugKey::operator<<(const char *key)
ptr->ds.writeBytes(key, ::strlen(key));
return QServiceDebugValue(ptr);
#else
+ Q_UNUSED(key)
return QServiceDebugValue();
#endif
}
@@ -151,6 +152,7 @@ inline QServiceDebugKey QServiceDebugValue::operator<<(const qint32 &val)
ptr->ds << val;
return QServiceDebugKey(ptr);
#else
+ Q_UNUSED(val)
return QServiceDebugKey();
#endif
}
@@ -162,6 +164,7 @@ inline QServiceDebugKey QServiceDebugValue::operator<<(const float &val)
ptr->ds << val;
return QServiceDebugKey(ptr);
#else
+ Q_UNUSED(val)
return QServiceDebugKey();
#endif
}
@@ -174,6 +177,7 @@ inline QServiceDebugKey QServiceDebugValue::operator<<(const QString &val)
ptr->ds.writeBytes(ba.constData(), ba.size());
return QServiceDebugKey(ptr);
#else
+ Q_UNUSED(val)
return QServiceDebugKey();
#endif
}
@@ -185,6 +189,7 @@ inline QServiceDebugKey QServiceDebugValue::operator<<(const char *val)
ptr->ds.writeBytes(val, ::strlen(val));
return QServiceDebugKey(ptr);
#else
+ Q_UNUSED(val)
return QServiceDebugKey();
#endif
}
@@ -195,6 +200,7 @@ inline QServiceDebugValue QServiceDebugLog::operator<<(const char *key)
QSharedPointer<QServiceDebugMessage> msg(new QServiceDebugMessage());
return (QServiceDebugKey(msg) << key);
#else
+ Q_UNUSED(key)
return QServiceDebugValue();
#endif
}