From bc4751a3279b3c058b2f0c5af5fdebbab10474d3 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 21 Aug 2018 15:24:14 +0100 Subject: Fix warnings about using std::auto_ptr on C++11 or newer. --- src/modules/extra/m_ssl_gnutls.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/extra') 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 #include -- cgit v1.2.3