diff options
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index d7ca20742..8bd73b2bb 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -43,11 +43,12 @@ #elif defined __GNUC__ # if __GNUC__ < 6 # pragma GCC diagnostic ignored "-pedantic" -# else -# pragma GCC diagnostic ignored "-Wdeprecated-declarations" # endif #endif +// Fix warnings about using std::auto_ptr on C++11 or newer. +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + #include <gnutls/gnutls.h> #include <gnutls/x509.h> |