Suppress compiler warnings about unused function parameters
authorLuís Pereira <luis.artur.pereira@gmail.com>
Tue, 24 Jan 2017 15:09:42 +0000 (15:09 +0000)
committerPalo Kisa <palo.kisa@gmail.com>
Wed, 22 Feb 2017 10:32:48 +0000 (11:32 +0100)
configdialog/lxqtconfigdialog.cpp
lxqtapplication.cpp
lxqtpower/lxqtpowerproviders.cpp
lxqtpowermanager.cpp
lxqtscreensaver.cpp

index 8eea57b..947a578 100644 (file)
@@ -112,6 +112,7 @@ bool ConfigDialog::event(QEvent * event)
 
 void ConfigDialog::closeEvent(QCloseEvent* event)
 {
+    Q_UNUSED(event)
     emit save();
     mSettings->sync();
 }
index cb9a4c6..3cf09cf 100644 (file)
@@ -57,6 +57,7 @@ variable LXQT_DEBUG set
 */
 void dbgMessageOutput(QtMsgType type, const QMessageLogContext &ctx, const QString & msgStr)
 {
+    Q_UNUSED(ctx)
     QByteArray msgBuf = msgStr.toUtf8();
     const char* msg = msgBuf.constData();
     QDir dir(XdgDirs::configHome().toUtf8() + QLatin1String("/lxqt"));
index 5379281..202e46c 100644 (file)
@@ -594,12 +594,14 @@ HalProvider::~HalProvider()
 
 bool HalProvider::canAction(Power::Action action) const
 {
+    Q_UNUSED(action)
     return false;
 }
 
 
 bool HalProvider::doAction(Power::Action action)
 {
+    Q_UNUSED(action)
     return false;
 }
 
index f4f751e..0258c64 100644 (file)
@@ -69,6 +69,8 @@ public:
 
     static void warning(const QString& title, const QString& text)
     {
+        Q_UNUSED(title)
+        Q_UNUSED(text)
         QMessageBox::warning(parentWidget(), tr("LXQt Power Manager Error"), tr("Hibernate failed."));
     }
 
@@ -76,6 +78,7 @@ public:
 protected:
     virtual void resizeEvent(QResizeEvent* event)
     {
+        Q_UNUSED(event)
         const QRect screen = QApplication::desktop()->screenGeometry();
         move((screen.width()  - this->width()) / 2,
              (screen.height() - this->height()) / 2);
index c8a005e..3907578 100644 (file)
@@ -141,6 +141,7 @@ void ScreenSaverPrivate::_l_xdgProcess_finished(int err, QProcess::ExitStatus st
 {
     // http://portland.freedesktop.org/xdg-utils-1.1.0-rc1/scripts/xdg-screensaver
 
+    Q_UNUSED(status)
     Q_Q(ScreenSaver);
     if (err == 0)
         emit q->activated();