diff options
author | linuxdaemon <linuxdaemon@users.noreply.github.com> | 2019-06-24 06:00:39 -0500 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-06-24 12:00:39 +0100 |
commit | 871d93dc76091a273296e9a0a7ce3d411054c862 (patch) | |
tree | 5eb690505ac81c283b14f6028cf81f76a2b0d51f /src/modules/extra/m_ssl_gnutls.cpp | |
parent | 04e3f329d3c1f325a74fe23e39daaf663166913b (diff) |
Reset diagnostic pragmas after including external headers (#1661).
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index ce1dbaeaf..5785b1ab4 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -37,6 +37,10 @@ #include "modules/ssl.h" #include <memory> +#ifdef __GNUC__ +# pragma GCC diagnostic push +#endif + // Fix warnings about the use of commas at end of enumerator lists on C++03. #if defined __clang__ # pragma clang diagnostic ignored "-Wc++11-extensions" @@ -54,6 +58,10 @@ #include <gnutls/gnutls.h> #include <gnutls/x509.h> +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif + #ifndef GNUTLS_VERSION_NUMBER #define GNUTLS_VERSION_NUMBER LIBGNUTLS_VERSION_NUMBER #define GNUTLS_VERSION LIBGNUTLS_VERSION |