From ca452cca521e2b938dfb37f62d23614c9ec18a90 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 17 Jan 2020 15:22:34 +0000 Subject: Fix a harmless warning in the ssl_mbedtls module. --- src/modules/extra/m_ssl_mbedtls.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/modules/extra/m_ssl_mbedtls.cpp') diff --git a/src/modules/extra/m_ssl_mbedtls.cpp b/src/modules/extra/m_ssl_mbedtls.cpp index 84c507cf8..0df62f907 100644 --- a/src/modules/extra/m_ssl_mbedtls.cpp +++ b/src/modules/extra/m_ssl_mbedtls.cpp @@ -29,6 +29,17 @@ #include "inspircd.h" #include "modules/ssl.h" +// 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" +#elif defined __GNUC__ +# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)) +# pragma GCC diagnostic ignored "-Wpedantic" +# else +# pragma GCC diagnostic ignored "-pedantic" +# endif +#endif + #include #include #include -- cgit v1.2.3