summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-09-15 00:11:22 +0100
committerPeter Powell <petpow@saberuk.com>2016-09-15 00:11:22 +0100
commit13cf5f4c3bb48b194374e98055ae7cb2bedd41ff (patch)
tree006d30a0b210c00e8dbe8cbe776757696f835f28 /src/modules
parent9ec348c8dee467540a787d5771df1c41cba92eea (diff)
Fix m_ldap warning about OpenLDAP being deprecated on OS X.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ldap.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp
index 698738145..2081108a8 100644
--- a/src/modules/extra/m_ldap.cpp
+++ b/src/modules/extra/m_ldap.cpp
@@ -20,6 +20,11 @@
#include "inspircd.h"
#include "modules/ldap.h"
+// Ignore OpenLDAP deprecation warnings on OS X Yosemite and newer.
+#if defined __APPLE__
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
#include <ldap.h>
#ifdef _WIN32