From: Peter Powell Date: Tue, 21 Aug 2018 14:24:14 +0000 (+0100) Subject: Fix warnings about using std::auto_ptr on C++11 or newer. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=bc4751a3279b3c058b2f0c5af5fdebbab10474d3;p=user%2Fhenk%2Fcode%2Finspircd.git Fix warnings about using std::auto_ptr on C++11 or newer. --- 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