From bad6a9235a494a4e814f88b2b461b110549f77a3 Mon Sep 17 00:00:00 2001
From: Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>
Date: Thu, 2 Apr 2015 22:16:25 -0400
Subject: [PATCH] qtwrapper: Fix unused arguments warnings

Refs #69979
---
 src/private/videorenderermanager.cpp | 1 +
 src/qtwrapper/instancemanager_wrap.h | 9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/private/videorenderermanager.cpp b/src/private/videorenderermanager.cpp
index 6d9ac4c9..602404cf 100644
--- a/src/private/videorenderermanager.cpp
+++ b/src/private/videorenderermanager.cpp
@@ -189,6 +189,7 @@ void VideoRendererManager::setBufferSize(uint size)
 ///A video is not being rendered
 void VideoRendererManagerPrivate::startedDecoding(const QString& id, const QString& shmPath, int width, int height)
 {
+   Q_UNUSED(shmPath) //When directly linked, there is no SHM
    const QSize      res = QSize(width,height);
    const QByteArray rid = id.toLatin1();
 
diff --git a/src/qtwrapper/instancemanager_wrap.h b/src/qtwrapper/instancemanager_wrap.h
index a4dc6047..792833cb 100644
--- a/src/qtwrapper/instancemanager_wrap.h
+++ b/src/qtwrapper/instancemanager_wrap.h
@@ -47,10 +47,15 @@ public:
 
 public Q_SLOTS: // METHODS
    void Register(int pid, const QString &name)
-   {}
+   {
+      Q_UNUSED(pid ) //When directly linked, the PID is always the current process PID
+      Q_UNUSED(name)
+   }
 
    void Unregister(int pid)
-   {}
+   {
+      Q_UNUSED(pid) //When directly linked, the PID is always the current process PID
+   }
 
    bool isConnected();
 
-- 
GitLab