diff options
author | Peter Powell <petpow@saberuk.com> | 2019-08-23 10:42:38 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-08-23 10:51:31 +0100 |
commit | 9ed9396278c2499f5322575c87aa4daea33992e3 (patch) | |
tree | 26a92301d30825f5a85e9f0b96eae821be62f49f /src/modules | |
parent | e7ca24f4dc3420794c6c064f8ba19da3e2ed0110 (diff) |
Silence some GCC warnings.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_ircv3_servertime.cpp | 2 |
2 files changed, 5 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 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<ServerTimeTag>(mod, "server-time", "time") |