summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-17 15:22:34 +0000
committerSadie Powell <sadie@witchery.services>2020-01-17 15:35:20 +0000
commitca452cca521e2b938dfb37f62d23614c9ec18a90 (patch)
treea811c9170dff54c5b43c81536ab5084037a52751 /src
parent19cdd938610e6630d58bd5b0fd311a80f6e54647 (diff)
Fix a harmless warning in the ssl_mbedtls module.
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ssl_mbedtls.cpp11
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>