From eaebc23452813a8709d2bbb4d17fddb1b4f29d91 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 15 Nov 2016 12:13:40 +0100 Subject: Increase compiler warnings, fix a lot of those instances - Add explicit casts - Comment out unused params - Remove ignored const return types --- src/client/vnc/vncserver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/vnc/vncserver.cpp') diff --git a/src/client/vnc/vncserver.cpp b/src/client/vnc/vncserver.cpp index 496a84d..165ba6d 100644 --- a/src/client/vnc/vncserver.cpp +++ b/src/client/vnc/vncserver.cpp @@ -34,7 +34,7 @@ static QString makePassword(int len = 10) { char pass[len]; for (int i = 0; i < len; ++i) - pass[i] = 43 + qrand() % 80; + pass[i] = (char)(43 + qrand() % 80); return QString::fromUtf8(pass, len); } @@ -167,7 +167,7 @@ void VncServer::stop() * after 3 seconds... * @param event */ -void VncServer::timerEvent(QTimerEvent *event) +void VncServer::timerEvent(QTimerEvent * /* event */ ) { // Error timeout (3s), tell server that vnc setup failed this->stop(); @@ -222,7 +222,7 @@ void VncServer::onStdErr() * @brief VncServer::onError * @param error */ -void VncServer::onError(QProcess::ProcessError error) +void VncServer::onError(QProcess::ProcessError /* error */ ) { this->stop(); emit started(0, _ropass, _rwpass); @@ -232,7 +232,7 @@ void VncServer::onError(QProcess::ProcessError error) * @brief VncServer::onFinished * @param exitCode */ -void VncServer::onFinished(int exitCode) +void VncServer::onFinished(int /* exitCode */ ) { this->stop(); emit started(0, _ropass, _rwpass); -- cgit v1.2.3-55-g7522