summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_ssl_gnutls.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-08-23 10:42:38 +0100
committerPeter Powell <petpow@saberuk.com>2019-08-23 10:51:31 +0100
commit9ed9396278c2499f5322575c87aa4daea33992e3 (patch)
tree26a92301d30825f5a85e9f0b96eae821be62f49f /src/modules/extra/m_ssl_gnutls.cpp
parente7ca24f4dc3420794c6c064f8ba19da3e2ed0110 (diff)
Silence some GCC warnings.
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 9347440cc..80c076148 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -51,9 +51,6 @@
# 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>
@@ -61,6 +58,9 @@
# pragma GCC diagnostic pop
#endif
+// Fix warnings about using std::auto_ptr on C++11 or newer.
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
#ifndef GNUTLS_VERSION_NUMBER
#define GNUTLS_VERSION_NUMBER LIBGNUTLS_VERSION_NUMBER
#define GNUTLS_VERSION LIBGNUTLS_VERSION