Fix warnings found by Clang
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 10 Oct 2013 19:09:16 +0000 (21:09 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 10 Oct 2013 19:09:16 +0000 (21:09 +0200)
A couple of mismatched tags, and an unused parameter.

src/client/clientuserinputhandler.h
src/common/signalproxy.h

index 88f456c..f5bf36a 100644 (file)
@@ -24,7 +24,7 @@
 #include "basichandler.h"
 
 class BufferInfo;
-class NetworkId;
+struct NetworkId;
 
 class ClientUserInputHandler : public BasicHandler
 {
index a40a1b6..9f31f6f 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "protocol.h"
 
-class QMetaObject;
+struct QMetaObject;
 
 class Peer;
 class SyncableObject;
@@ -125,7 +125,7 @@ private:
     void handle(Peer *peer, const Protocol::InitData &initData);
 
     template<class T>
-    void handle(Peer *peer, T) { Q_ASSERT(0); }
+    void handle(Peer *peer, T) { Q_UNUSED(peer); Q_ASSERT(0); }
 
     bool invokeSlot(QObject *receiver, int methodId, const QVariantList &params, QVariant &returnValue);
     bool invokeSlot(QObject *receiver, int methodId, const QVariantList &params = QVariantList());