diff --git a/src/vmime/net/imap/IMAPConnection.cpp b/src/vmime/net/imap/IMAPConnection.cpp index 7a90b142..5e6f6f8f 100644 --- a/src/vmime/net/imap/IMAPConnection.cpp +++ b/src/vmime/net/imap/IMAPConnection.cpp @@ -234,23 +234,23 @@ void IMAPConnection::authenticate() authenticateSASL(); return; } - catch (exceptions::authentication_error& e) + catch (exceptions::authentication_error&) { if (!GET_PROPERTY(bool, PROPERTY_OPTIONS_SASL_FALLBACK)) { // Can't fallback on normal authentication internalDisconnect(); - throw e; + throw; } else { // Ignore, will try normal authentication } } - catch (exception& e) + catch (exception&) { internalDisconnect(); - throw e; + throw; } } #endif // VMIME_HAVE_SASL_SUPPORT diff --git a/src/vmime/net/pop3/POP3Connection.cpp b/src/vmime/net/pop3/POP3Connection.cpp index 283cc91b..f5a1a448 100644 --- a/src/vmime/net/pop3/POP3Connection.cpp +++ b/src/vmime/net/pop3/POP3Connection.cpp @@ -233,23 +233,23 @@ void POP3Connection::authenticate(const messageId& randomMID) m_authenticated = true; return; } - catch (exceptions::authentication_error& e) + catch (exceptions::authentication_error&) { if (!GET_PROPERTY(bool, PROPERTY_OPTIONS_SASL_FALLBACK)) { // Can't fallback on APOP/normal authentication internalDisconnect(); - throw e; + throw; } else { // Ignore, will try APOP/normal authentication } } - catch (exception& e) + catch (exception&) { internalDisconnect(); - throw e; + throw; } } #endif // VMIME_HAVE_SASL_SUPPORT diff --git a/src/vmime/net/smtp/SMTPConnection.cpp b/src/vmime/net/smtp/SMTPConnection.cpp index bb5e3c2e..a45f9149 100644 --- a/src/vmime/net/smtp/SMTPConnection.cpp +++ b/src/vmime/net/smtp/SMTPConnection.cpp @@ -294,10 +294,10 @@ void SMTPConnection::authenticate() m_authenticated = true; return; } - catch (exception& e) + catch (exception&) { internalDisconnect(); - throw e; + throw; } } #endif // VMIME_HAVE_SASL_SUPPORT