From 13cf5f4c3bb48b194374e98055ae7cb2bedd41ff Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 15 Sep 2016 00:11:22 +0100 Subject: Fix m_ldap warning about OpenLDAP being deprecated on OS X. --- src/modules/extra/m_ldap.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 #ifdef _WIN32 -- cgit v1.2.3