diff options
author | Sadie Powell <sadie@witchery.services> | 2020-01-17 15:22:34 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-01-17 15:35:20 +0000 |
commit | ca452cca521e2b938dfb37f62d23614c9ec18a90 (patch) | |
tree | a811c9170dff54c5b43c81536ab5084037a52751 /src | |
parent | 19cdd938610e6630d58bd5b0fd311a80f6e54647 (diff) |
Fix a harmless warning in the ssl_mbedtls module.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_ssl_mbedtls.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 <mbedtls/ctr_drbg.h> #include <mbedtls/dhm.h> #include <mbedtls/ecp.h> |