summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_ssl_gnutls.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-08-21 15:24:14 +0100
committerPeter Powell <petpow@saberuk.com>2018-08-21 15:47:46 +0100
commitbc4751a3279b3c058b2f0c5af5fdebbab10474d3 (patch)
tree0a665fae54926e2d8c0ddee307ef902bc2ccc7fd /src/modules/extra/m_ssl_gnutls.cpp
parent71c367f89f5384eb05cf191f63ed5094e90b46ad (diff)
Fix warnings about using std::auto_ptr on C++11 or newer.
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp5
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>