From 22f768ca99578809a314f3f4e7978983959378f8 Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Sun, 10 Feb 2013 17:10:30 +0200 Subject: [PATCH] Fix -Wunused-parameter warning --- src/smtpclient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index cbbcd5f..39cd786 100644 --- a/src/smtpclient.cpp +++ b/src/smtpclient.cpp @@ -617,6 +617,8 @@ void SmtpClient::socketStateChanged(QAbstractSocket::SocketState state) { void SmtpClient::socketError(QAbstractSocket::SocketError socketError) { #ifndef QT_NO_DEBUG qDebug() << "SocketError:" << socketError << socket->error(); +#else + Q_UNUSED(socketError); #endif emit error(SocketError); }