From 9ed9396278c2499f5322575c87aa4daea33992e3 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 23 Aug 2019 10:42:38 +0100 Subject: Silence some GCC warnings. --- src/modules/extra/m_ssl_gnutls.cpp | 6 +++--- src/modules/m_ircv3_servertime.cpp | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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 #include @@ -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 diff --git a/src/modules/m_ircv3_servertime.cpp b/src/modules/m_ircv3_servertime.cpp index 3e059719d..7a4ac5d2a 100644 --- a/src/modules/m_ircv3_servertime.cpp +++ b/src/modules/m_ircv3_servertime.cpp @@ -46,6 +46,8 @@ class ServerTimeTag } public: + using ServerProtocol::MessageEventListener::OnBuildMessage; + ServerTimeTag(Module* mod) : IRCv3::ServerTime::Manager(mod) , IRCv3::CapTag(mod, "server-time", "time") -- cgit v1.2.3