summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-09-13 00:10:30 +0100
committerPeter Powell <petpow@saberuk.com>2016-09-15 00:09:55 +0100
commit9ec348c8dee467540a787d5771df1c41cba92eea (patch)
tree779e30893dfc035b5eb4f362fa08012ce982f26a /src
parent42888e2907dacb829e2a29effbee83efb5bef6ec (diff)
Fix m_geoip warning about the use of C++11 features.
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_geoip.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/extra/m_geoip.cpp b/src/modules/extra/m_geoip.cpp
index 967c6a761..570901430 100644
--- a/src/modules/extra/m_geoip.cpp
+++ b/src/modules/extra/m_geoip.cpp
@@ -21,6 +21,13 @@
#include "inspircd.h"
#include "xline.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__
+# pragma GCC diagnostic ignored "-pedantic"
+#endif
+
#include <GeoIP.h>
#ifdef _WIN32