From 145720277c82d6dc373f6e52e9c1d647e44c6ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20T=C5=91k=C3=A9s?= Date: Thu, 1 Jun 2017 18:29:13 +0300 Subject: [PATCH] Issue #35 - fix compiler warnings --- demos/demo2/sendemail.cpp | 2 ++ src/smtpclient.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/demos/demo2/sendemail.cpp b/demos/demo2/sendemail.cpp index c106e7d..2358a4f 100644 --- a/demos/demo2/sendemail.cpp +++ b/demos/demo2/sendemail.cpp @@ -107,12 +107,14 @@ void SendEmail::on_sendEmail_clicked() } if (auth) + { smtp.login(user, password); if (!smtp.waitForAuthenticated()) { errorMessage("Authentification Failed"); return; } + } smtp.sendMail(message); if (!smtp.waitForMailSent()) diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index 507c701..1f76581 100644 --- a/src/smtpclient.cpp +++ b/src/smtpclient.cpp @@ -599,6 +599,8 @@ void SmtpClient::socketStateChanged(QAbstractSocket::SocketState state) { void SmtpClient::socketError(QAbstractSocket::SocketError socketError) { #ifndef QT_NO_DEBUG qDebug() << "[Socket] ERROR:" << socketError; +#else + Q_UNUSED(socketError); #endif emit error(SocketError); }